1 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
2 --> $DIR/issue-43106-gating-of-derive.rs:4:1
5 | ^^^^^^^^^^^^^^^^ not applicable here
8 LL | | mod inner { #![derive(Debug)] }
14 | |_- not a `struct`, `enum` or `union`
16 error[E0658]: inner macro attributes are unstable
17 --> $DIR/issue-43106-gating-of-derive.rs:7:20
19 LL | mod inner { #![derive(Debug)] }
22 = note: see issue #54726 <https://github.com/rust-lang/rust/issues/54726> for more information
23 = help: add `#![feature(custom_inner_attributes)]` to the crate attributes to enable
25 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
26 --> $DIR/issue-43106-gating-of-derive.rs:7:17
28 LL | mod inner { #![derive(Debug)] }
29 | ------------^^^^^^^^^^^^^^^^^--
31 | | not applicable here
32 | not a `struct`, `enum` or `union`
34 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
35 --> $DIR/issue-43106-gating-of-derive.rs:11:5
38 | ^^^^^^^^^^^^^^^^ not applicable here
41 | --------------- not a `struct`, `enum` or `union`
43 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
44 --> $DIR/issue-43106-gating-of-derive.rs:24:5
47 | ^^^^^^^^^^^^^^^^ not applicable here
50 | ----------- not a `struct`, `enum` or `union`
52 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
53 --> $DIR/issue-43106-gating-of-derive.rs:28:5
56 | ^^^^^^^^^^^^^^^^ not applicable here
59 | ---------- not a `struct`, `enum` or `union`
61 error: aborting due to 6 previous errors
63 Some errors have detailed explanations: E0658, E0774.
64 For more information about an error, try `rustc --explain E0658`.