Files
rustlings/exercises/21_macros/macros3.rs
T

15 lines
264 B
Rust
Raw Normal View History

2026-03-12 20:54:14 -04:00
// TODO: Fix the compiler error without taking the macro definition out of this
// module.
mod macros {
2026-03-23 03:36:33 -04:00
#[macro_export]
2026-03-12 20:54:14 -04:00
macro_rules! my_macro {
() => {
println!("Check out my macro!");
};
}
}
fn main() {
my_macro!();
}