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[E0774]: `derive` may only be applied to structs, enums and unions
8 --> $DIR/issue-43106-gating-of-derive.rs:7:17
10 LL | mod inner { #![derive(Debug)] }
11 | ^^^^^^^^^^^^^^^^^ help: try an outer attribute: `#[derive(Debug)]`
13 error[E0774]: `derive` may only be applied to structs, enums and unions
14 --> $DIR/issue-43106-gating-of-derive.rs:10:5
19 error[E0774]: `derive` may only be applied to structs, enums and unions
20 --> $DIR/issue-43106-gating-of-derive.rs:23:5
25 error[E0774]: `derive` may only be applied to structs, enums and unions
26 --> $DIR/issue-43106-gating-of-derive.rs:27:5
31 error: aborting due to 5 previous errors
33 For more information about this error, try `rustc --explain E0774`.