1 // aux-build:derive-foo.rs
2 // aux-build:derive-clona.rs
3 // aux-build:test-macros.rs
6 extern crate derive_foo;
8 extern crate derive_clona;
9 extern crate test_macros;
11 use test_macros::empty as bang_proc_macro;
12 use test_macros::empty_attr as attr_proc_macro;
14 macro_rules! FooWithLongNam {
18 macro_rules! attr_proc_mac {
22 #[derive(FooWithLongNan)]
23 //~^ ERROR cannot find
26 // Interpreted as an unstable custom attribute
27 #[attr_proc_macra] //~ ERROR cannot find attribute `attr_proc_macra` in this scope
30 // Interpreted as an unstable custom attribute
31 #[FooWithLongNan] //~ ERROR cannot find attribute `FooWithLongNan` in this scope
35 //~^ ERROR cannot find
39 //~^ ERROR cannot find
42 #[derive(attr_proc_macra)]
43 //~^ ERROR cannot find
48 //~^ ERROR cannot find
51 //~^ ERROR cannot find
54 //~^ ERROR cannot find
57 //~^ ERROR cannot find