1 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
2 --> $DIR/attributes-on-modules-fail.rs:16:1
5 | ^^^^^^^^^^^^^^^ not applicable here
7 | -------- not a `struct`, `enum` or `union`
9 error[E0658]: non-inline modules in proc macro input are unstable
10 --> $DIR/attributes-on-modules-fail.rs:20:1
15 = note: see issue #54727 <https://github.com/rust-lang/rust/issues/54727> for more information
16 = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
18 error[E0658]: non-inline modules in proc macro input are unstable
19 --> $DIR/attributes-on-modules-fail.rs:24:5
24 = note: see issue #54727 <https://github.com/rust-lang/rust/issues/54727> for more information
25 = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
27 error[E0658]: non-inline modules in proc macro input are unstable
28 --> $DIR/attributes-on-modules-fail.rs:33:9
33 = note: see issue #54727 <https://github.com/rust-lang/rust/issues/54727> for more information
34 = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
36 error[E0658]: non-inline modules in proc macro input are unstable
37 --> $DIR/attributes-on-modules-fail.rs:42:5
42 = note: see issue #54727 <https://github.com/rust-lang/rust/issues/54727> for more information
43 = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
45 error[E0412]: cannot find type `Y` in this scope
46 --> $DIR/attributes-on-modules-fail.rs:10:14
49 | ^ not found in this scope
51 help: consider importing this struct
56 error[E0412]: cannot find type `X` in this scope
57 --> $DIR/attributes-on-modules-fail.rs:14:10
60 | ^ not found in this scope
62 help: consider importing this struct
67 error: aborting due to 7 previous errors
69 Some errors have detailed explanations: E0412, E0658, E0774.
70 For more information about an error, try `rustc --explain E0412`.