1 error: `derive` may only be applied to structs, enums and unions
2 --> $DIR/issue-43106-gating-of-derive.rs:14:1
5 | ^^^^^^^^^^^^^^^^^ help: try an outer attribute: `#[derive(Debug)]`
7 error: `derive` may only be applied to structs, enums and unions
8 --> $DIR/issue-43106-gating-of-derive.rs:17:1
13 error: `derive` may only be applied to structs, enums and unions
14 --> $DIR/issue-43106-gating-of-derive.rs:20:17
16 20 | mod inner { #![derive(Debug)] }
17 | ^^^^^^^^^^^^^^^^^ help: try an outer attribute: `#[derive(Debug)]`
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:36:5
31 error: `derive` may only be applied to structs, enums and unions
32 --> $DIR/issue-43106-gating-of-derive.rs:40:5
37 error: aborting due to 6 previous errors