summaryrefslogtreecommitdiff
path: root/exercises/21_macros/macros3.rs
blob: 92a19227c4a9a498eda3c02a4090a1df0e312a08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// macros3.rs
//
// Make me compile, without taking the macro out of the module!
//
// Execute `rustlings hint macros3` or use the `hint` watch subcommand for a
// hint.

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

fn main() {
    my_macro!();
}