Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- println!("{:?}", {
- mod fuck_macro {macro_rules! fuck { ($($t:tt)*) => { panic!($($t)*) } } } use fuck_macro::fuck;
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (file:///playground)
- error[E0432]: unresolved import `fuck_macro`
- --> src/main.rs:5:88
- |
- 5 | mod fuck_macro {macro_rules! fuck { ($($t:tt)*) => { panic!($($t)*) } } } use fuck_macro::fuck;
- | ^^^^^^^^^^ Maybe a missing `extern crate fuck_macro;`?
- warning: unused macro definition
- --> src/main.rs:5:25
- |
- 5 | mod fuck_macro {macro_rules! fuck { ($($t:tt)*) => { panic!($($t)*) } } } use fuck_macro::fuck;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- |
- = note: #[warn(unused_macros)] on by default
- warning: unused import: `fuck_macro::fuck`
- --> src/main.rs:5:88
- |
- 5 | mod fuck_macro {macro_rules! fuck { ($($t:tt)*) => { panic!($($t)*) } } } use fuck_macro::fuck;
- | ^^^^^^^^^^^^^^^^
- |
- = note: #[warn(unused_imports)] on by default
- error: aborting due to previous error
- For more information about this error, try `rustc --explain E0432`.
- error: Could not compile `playground`.
- To learn more, run the command again with --verbose.
- */
- /* ~~~~=== stdout ===~~~~
- */
Add Comment
Please, Sign In to add comment