1 error: `derive` may only be applied to structs, enums and unions
2 --> $DIR/issue-43106-gating-of-derive.rs:4:1
7 error: `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: `derive` may only be applied to structs, enums and unions
14 --> $DIR/issue-43106-gating-of-derive.rs:10:5
19 error: `derive` may only be applied to structs, enums and unions
20 --> $DIR/issue-43106-gating-of-derive.rs:23:5
25 error: `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