]>
Commit | Line | Data |
---|---|---|
136023e0 | 1 | error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s |
0731742a | 2 | --> $DIR/issue-43023.rs:4:5 |
8faf50e0 | 3 | | |
136023e0 XL |
4 | LL | #[derive(Debug)] |
5 | | ^^^^^^^^^^^^^^^^ not applicable here | |
6 | LL | / fn f() { | |
7 | LL | | file!(); | |
8 | LL | | } | |
9 | | |_____- not a `struct`, `enum` or `union` | |
8faf50e0 | 10 | |
136023e0 | 11 | error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s |
0731742a | 12 | --> $DIR/issue-43023.rs:11:5 |
8faf50e0 | 13 | | |
532ac7d7 | 14 | LL | #[derive(Debug)] |
136023e0 XL |
15 | | ^^^^^^^^^^^^^^^^ not applicable here |
16 | LL | fn f(); | |
17 | | ------- not a `struct`, `enum` or `union` | |
8faf50e0 | 18 | |
136023e0 | 19 | error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s |
0731742a | 20 | --> $DIR/issue-43023.rs:16:5 |
8faf50e0 | 21 | | |
532ac7d7 | 22 | LL | #[derive(Debug)] |
136023e0 XL |
23 | | ^^^^^^^^^^^^^^^^ not applicable here |
24 | LL | type F; | |
25 | | ------- not a `struct`, `enum` or `union` | |
8faf50e0 XL |
26 | |
27 | error: aborting due to 3 previous errors | |
28 | ||
1b1a35ee | 29 | For more information about this error, try `rustc --explain E0774`. |