rustlings/exercises/21_macros/macros2.rs

11 lines
196 B
Rust
Raw Normal View History

2017-03-17 17:30:29 +03:00
fn main() {
my_macro!();
}
2024-07-01 12:31:37 +03:00
// TODO: Fix the compiler error by moving the whole definition of this macro.
2017-03-17 17:30:29 +03:00
macro_rules! my_macro {
() => {
println!("Check out my macro!");
};
}