]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/proc-macro-attributes.rs
Rollup merge of #106978 - mejrs:mir_build3, r=davidtwco
[rust.git] / tests / ui / proc-macro / proc-macro-attributes.rs
1 // aux-build:derive-b.rs
2
3 #[macro_use]
4 extern crate derive_b;
5
6 #[B] //~ ERROR `B` is ambiguous
7      //~| WARN derive helper attribute is used before it is introduced
8      //~| WARN this was previously accepted
9 #[C] //~ ERROR cannot find attribute `C` in this scope
10 #[B(D)] //~ ERROR `B` is ambiguous
11         //~| WARN derive helper attribute is used before it is introduced
12         //~| WARN this was previously accepted
13 #[B(E = "foo")] //~ ERROR `B` is ambiguous
14                 //~| WARN derive helper attribute is used before it is introduced
15                 //~| WARN this was previously accepted
16 #[B(arbitrary tokens)] //~ ERROR `B` is ambiguous
17                        //~| WARN derive helper attribute is used before it is introduced
18                        //~| WARN this was previously accepted
19 #[derive(B)]
20 struct B;
21
22 fn main() {}