]> git.lizzy.rs Git - rust.git/blob - src/test/ui/derives/issue-43023.stderr
Auto merge of #106143 - matthiaskrgr:rollup-3kpy1dc, r=matthiaskrgr
[rust.git] / src / test / ui / derives / issue-43023.stderr
1 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
2   --> $DIR/issue-43023.rs:4:5
3    |
4 LL |       #[derive(Debug)]
5    |       ^^^^^^^^^^^^^^^^ not applicable here
6 LL | /     fn f() {
7 LL | |         file!();
8 LL | |     }
9    | |_____- not a `struct`, `enum` or `union`
10
11 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
12   --> $DIR/issue-43023.rs:11:5
13    |
14 LL |     #[derive(Debug)]
15    |     ^^^^^^^^^^^^^^^^ not applicable here
16 LL |     fn f();
17    |     ------- not a `struct`, `enum` or `union`
18
19 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
20   --> $DIR/issue-43023.rs:16:5
21    |
22 LL |     #[derive(Debug)]
23    |     ^^^^^^^^^^^^^^^^ not applicable here
24 LL |     type F;
25    |     ------- not a `struct`, `enum` or `union`
26
27 error: aborting due to 3 previous errors
28
29 For more information about this error, try `rustc --explain E0774`.