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
24 //~| ERROR cannot find
27 // Interpreted as an unstable custom attribute
28 #[attr_proc_macra] //~ ERROR cannot find attribute `attr_proc_macra` in this scope
31 // Interpreted as an unstable custom attribute
32 #[FooWithLongNan] //~ ERROR cannot find attribute `FooWithLongNan` in this scope
36 //~^ ERROR cannot find
37 //~| ERROR cannot find
41 //~^ ERROR cannot find
42 //~| ERROR cannot find
45 #[derive(attr_proc_macra)]
46 //~^ ERROR cannot find
47 //~| ERROR cannot find
52 //~^ ERROR cannot find
55 //~^ ERROR cannot find
58 //~^ ERROR cannot find
61 //~^ ERROR cannot find