]> git.proxmox.com Git - rustc.git/blob - tests/ui/resolve/issue-49074.rs
New upstream version 1.68.2+dfsg1
[rustc.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 }