1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#[macro_export]
macro_rules! expand {
    () => {
        println!("Expanded!");
        $crate::do_a_thing();
    };
}

#[macro_export]
macro_rules! some_lower_level_macro {
    () => {{
        $crate::do_a_thing();
        $crate::expand!();
    }};
}

pub fn do_a_thing() {
    println!("I'm doing a thing!");
}