Enrico Bozzolini 07de819eee Current status
2020-05-22 22:03:52 +02:00

18 lines
322 B
Rust

// macros3.rs
// Make me compile, without taking the macro out of the module!
// Execute `rustlings hint macros3` for hints :)
mod macros {
#[macro_export]
macro_rules! my_macro {
() => {
println!("Check out my macro!");
};
}
}
#[macro_use(macros)]
fn main() {
my_macro!();
}