1 // aux-build:test-macros.rs
4 extern crate test_macros;
10 type A = Y; //~ ERROR cannot find type `Y` in this scope
14 type A = X; //~ ERROR cannot find type `X` in this scope
16 #[derive(Copy)] //~ ERROR `derive` may only be applied to `struct`s, `enum`s and `union`s
20 mod module; //~ ERROR non-inline modules in proc macro input are unstable
24 mod inner; //~ ERROR non-inline modules in proc macro input are unstable
26 mod inner_inline {} // OK
32 #[path = "outer/inner.rs"]
33 mod inner; //~ ERROR non-inline modules in proc macro input are unstable
34 mod inner_inline {} // OK
41 #[path = "outer/inner.rs"]
42 mod inner; //~ ERROR non-inline modules in proc macro input are unstable
43 mod inner_inline {} // OK