1 error[E0774]: `derive` may only be applied to structs, enums and unions
2 --> $DIR/issue-43106-gating-of-derive.rs:4:1
7 error[E0658]: inner macro attributes are unstable
8 --> $DIR/issue-43106-gating-of-derive.rs:7:20
10 LL | mod inner { #![derive(Debug)] }
13 = note: see issue #54726 <https://github.com/rust-lang/rust/issues/54726> for more information
14 = help: add `#![feature(custom_inner_attributes)]` to the crate attributes to enable
16 error[E0774]: `derive` may only be applied to structs, enums and unions
17 --> $DIR/issue-43106-gating-of-derive.rs:7:17
19 LL | mod inner { #![derive(Debug)] }
22 error[E0774]: `derive` may only be applied to structs, enums and unions
23 --> $DIR/issue-43106-gating-of-derive.rs:11:5
28 error[E0774]: `derive` may only be applied to structs, enums and unions
29 --> $DIR/issue-43106-gating-of-derive.rs:24:5
34 error[E0774]: `derive` may only be applied to structs, enums and unions
35 --> $DIR/issue-43106-gating-of-derive.rs:28:5
40 error: aborting due to 6 previous errors
42 Some errors have detailed explanations: E0658, E0774.
43 For more information about an error, try `rustc --explain E0658`.