summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/issue-49074.rs
blob: 752bb345b703e9fa53ce9d0915feffbad9285fee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Check that unknown attribute error is shown even if there are unresolved macros.

#[marco_use] // typo
//~^ ERROR cannot find attribute `marco_use` in this scope
mod foo {
    macro_rules! bar {
        () => ();
    }
}

fn main() {
   bar!(); //~ ERROR cannot find macro `bar` in this scope
}