about summary refs log tree commit diff
path: root/tests/ui/macros/defined-later-issue-121061-2.rs
blob: 3db76c281ec87412ee4b9329a8bd7083568e0c46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
mod demo {
    fn hello() {
        something_later!(); //~ ERROR cannot find macro `something_later` in this scope
    }

    macro_rules! something_later {
        () => {
            println!("successfully expanded!");
        };
    }
}

fn main() {}