Guest User

Untitled

a guest
May 16th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. fn main() {
  2. println!("{:?}", {
  3. mod fuck_macro {macro_rules! fuck { ($($t:tt)*) => { panic!($($t)*) } } } use fuck_macro::fuck;
  4. });
  5. }
  6.  
  7.  
  8. /* ~~~~=== stderr ===~~~~
  9. Compiling playground v0.0.1 (file:///playground)
  10. error[E0432]: unresolved import `fuck_macro`
  11. --> src/main.rs:5:88
  12. |
  13. 5 | mod fuck_macro {macro_rules! fuck { ($($t:tt)*) => { panic!($($t)*) } } } use fuck_macro::fuck;
  14. | ^^^^^^^^^^ Maybe a missing `extern crate fuck_macro;`?
  15.  
  16. warning: unused macro definition
  17. --> src/main.rs:5:25
  18. |
  19. 5 | mod fuck_macro {macro_rules! fuck { ($($t:tt)*) => { panic!($($t)*) } } } use fuck_macro::fuck;
  20. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  21. |
  22. = note: #[warn(unused_macros)] on by default
  23.  
  24. warning: unused import: `fuck_macro::fuck`
  25. --> src/main.rs:5:88
  26. |
  27. 5 | mod fuck_macro {macro_rules! fuck { ($($t:tt)*) => { panic!($($t)*) } } } use fuck_macro::fuck;
  28. | ^^^^^^^^^^^^^^^^
  29. |
  30. = note: #[warn(unused_imports)] on by default
  31.  
  32. error: aborting due to previous error
  33.  
  34. For more information about this error, try `rustc --explain E0432`.
  35. error: Could not compile `playground`.
  36.  
  37. To learn more, run the command again with --verbose.
  38.  
  39. */
  40.  
  41. /* ~~~~=== stdout ===~~~~
  42.  
  43. */
Add Comment
Please, Sign In to add comment