summaryrefslogtreecommitdiff
path: root/exercises/21_macros/macros3.rs
blob: 405c397aabe2193c8919a1d26c8654ba20d43591 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Make me compile, without taking the macro out of the module!

mod macros {
    macro_rules! my_macro {
        () => {
            println!("Check out my macro!");
        };
    }
}

fn main() {
    my_macro!();
}