]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gate/issue-43106-gating-of-derive.stderr
Update tests
[rust.git] / src / test / ui / feature-gate / issue-43106-gating-of-derive.stderr
1 error[E0774]: `derive` may only be applied to structs, enums and unions
2   --> $DIR/issue-43106-gating-of-derive.rs:4:1
3    |
4 LL | #[derive(Debug)]
5    | ^^^^^^^^^^^^^^^^
6
7 error[E0774]: `derive` may only be applied to structs, enums and unions
8   --> $DIR/issue-43106-gating-of-derive.rs:7:17
9    |
10 LL |     mod inner { #![derive(Debug)] }
11    |                 ^^^^^^^^^^^^^^^^^ help: try an outer attribute: `#[derive(Debug)]`
12
13 error[E0774]: `derive` may only be applied to structs, enums and unions
14   --> $DIR/issue-43106-gating-of-derive.rs:10:5
15    |
16 LL |     #[derive(Debug)]
17    |     ^^^^^^^^^^^^^^^^
18
19 error[E0774]: `derive` may only be applied to structs, enums and unions
20   --> $DIR/issue-43106-gating-of-derive.rs:23:5
21    |
22 LL |     #[derive(Debug)]
23    |     ^^^^^^^^^^^^^^^^
24
25 error[E0774]: `derive` may only be applied to structs, enums and unions
26   --> $DIR/issue-43106-gating-of-derive.rs:27:5
27    |
28 LL |     #[derive(Debug)]
29    |     ^^^^^^^^^^^^^^^^
30
31 error: aborting due to 5 previous errors
32
33 For more information about this error, try `rustc --explain E0774`.