fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s 2 --> $DIR/issue-43106-gating-of-derive.rs:4:1 3 | 4LL | #[derive(Debug)] 5 | ^^^^^^^^^^^^^^^^ not applicable here 6LL | 7LL | / mod derive { 8LL | | mod inner { #![derive(Debug)] } 9LL | | 10LL | | 11... | 12LL | | impl S { } 13LL | | } 14 | |_- not a `struct`, `enum` or `union` 15 16error[E0658]: inner macro attributes are unstable 17 --> $DIR/issue-43106-gating-of-derive.rs:7:20 18 | 19LL | mod inner { #![derive(Debug)] } 20 | ^^^^^^ 21 | 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 24 25error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s 26 --> $DIR/issue-43106-gating-of-derive.rs:7:17 27 | 28LL | mod inner { #![derive(Debug)] } 29 | ------------^^^^^^^^^^^^^^^^^-- 30 | | | 31 | | not applicable here 32 | not a `struct`, `enum` or `union` 33 34error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s 35 --> $DIR/issue-43106-gating-of-derive.rs:11:5 36 | 37LL | #[derive(Debug)] 38 | ^^^^^^^^^^^^^^^^ not applicable here 39LL | 40LL | fn derive() { } 41 | --------------- not a `struct`, `enum` or `union` 42 43error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s 44 --> $DIR/issue-43106-gating-of-derive.rs:24:5 45 | 46LL | #[derive(Debug)] 47 | ^^^^^^^^^^^^^^^^ not applicable here 48LL | 49LL | type T = S; 50 | ----------- not a `struct`, `enum` or `union` 51 52error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s 53 --> $DIR/issue-43106-gating-of-derive.rs:28:5 54 | 55LL | #[derive(Debug)] 56 | ^^^^^^^^^^^^^^^^ not applicable here 57LL | 58LL | impl S { } 59 | ---------- not a `struct`, `enum` or `union` 60 61error: aborting due to 6 previous errors 62 63Some errors have detailed explanations: E0658, E0774. 64For more information about an error, try `rustc --explain E0658`.