]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/issue-49074.rs
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / ui / resolve / issue-49074.rs
1 // Check that unknown attribute error is shown even if there are unresolved macros.
2
3 #[marco_use] // typo
4 //~^ ERROR cannot find attribute `marco_use` in this scope
5 mod foo {
6     macro_rules! bar {
7         () => ();
8     }
9 }
10
11 fn main() {
12    bar!(); //~ ERROR cannot find macro `bar` in this scope
13 }