rustlings/exercises/21_macros/macros3.rs

14 lines
218 B
Rust
Raw Normal View History

// Make me compile, without taking the macro out of the module!
2017-03-17 14:30:29 +00:00
mod macros {
macro_rules! my_macro {
() => {
println!("Check out my macro!");
};
}
}
fn main() {
my_macro!();
}