summaryrefslogtreecommitdiff
path: root/exercises/macros/macros3.rs
blob: 106f1c6dc804a8adf97f898ec2907487956d3e6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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.

// I AM NOT DONE

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

fn main() {
    my_macro!();
}