]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/issue-43106-gating-of-derive.stderr
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / issue-43106-gating-of-derive.stderr
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
3    |
4 LL |   #[derive(Debug)]
5    |   ^^^^^^^^^^^^^^^^ not applicable here
6 LL |
7 LL | / mod derive {
8 LL | |     mod inner { #![derive(Debug)] }
9 LL | |
10 LL | |
11 ...  |
12 LL | |     impl S { }
13 LL | | }
14    | |_- not a `struct`, `enum` or `union`
15
16 error[E0658]: inner macro attributes are unstable
17   --> $DIR/issue-43106-gating-of-derive.rs:7:20
18    |
19 LL |     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
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
27    |
28 LL |     mod inner { #![derive(Debug)] }
29    |     ------------^^^^^^^^^^^^^^^^^--
30    |     |           |
31    |     |           not applicable here
32    |     not a `struct`, `enum` or `union`
33
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
36    |
37 LL |     #[derive(Debug)]
38    |     ^^^^^^^^^^^^^^^^ not applicable here
39 LL |
40 LL |     fn derive() { }
41    |     --------------- not a `struct`, `enum` or `union`
42
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
45    |
46 LL |     #[derive(Debug)]
47    |     ^^^^^^^^^^^^^^^^ not applicable here
48 LL |
49 LL |     type T = S;
50    |     ----------- not a `struct`, `enum` or `union`
51
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
54    |
55 LL |     #[derive(Debug)]
56    |     ^^^^^^^^^^^^^^^^ not applicable here
57 LL |
58 LL |     impl S { }
59    |     ---------- not a `struct`, `enum` or `union`
60
61 error: aborting due to 6 previous errors
62
63 Some errors have detailed explanations: E0658, E0774.
64 For more information about an error, try `rustc --explain E0658`.