fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error: `derive` may only be applied to structs, enums and unions 2 --> $DIR/issue-43106-gating-of-derive.rs:4:1 3 | 4LL | #[derive(Debug)] 5 | ^^^^^^^^^^^^^^^^ 6 7error: `derive` may only be applied to structs, enums and unions 8 --> $DIR/issue-43106-gating-of-derive.rs:7:17 9 | 10LL | mod inner { #![derive(Debug)] } 11 | ^^^^^^^^^^^^^^^^^ help: try an outer attribute: `#[derive(Debug)]` 12 13error: `derive` may only be applied to structs, enums and unions 14 --> $DIR/issue-43106-gating-of-derive.rs:10:5 15 | 16LL | #[derive(Debug)] 17 | ^^^^^^^^^^^^^^^^ 18 19error: `derive` may only be applied to structs, enums and unions 20 --> $DIR/issue-43106-gating-of-derive.rs:23:5 21 | 22LL | #[derive(Debug)] 23 | ^^^^^^^^^^^^^^^^ 24 25error: `derive` may only be applied to structs, enums and unions 26 --> $DIR/issue-43106-gating-of-derive.rs:27:5 27 | 28LL | #[derive(Debug)] 29 | ^^^^^^^^^^^^^^^^ 30 31error: aborting due to 5 previous errors 32