summaryrefslogtreecommitdiff
path: root/exercises/21_macros/macros3.rs
blob: 95374948bee54ab41cdc8b706d8e1e24c55fe576 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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!();
}