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