This repository has been archived on 2025-01-25. You can view files and clone it, but cannot push or open issues or pull requests.
2024-10-15 16:07:47 +02:00

14 lines
244 B
Rust

// TODO: Fix the compiler error without taking the macro definition out of this
// module.
mod macros {
macro_rules! my_macro {
() => {
println!("Check out my macro!");
};
}
}
fn main() {
my_macro!();
}