]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-43023.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-43023.stderr
CommitLineData
136023e0 1error[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
4LL | #[derive(Debug)]
5 | ^^^^^^^^^^^^^^^^ not applicable here
6LL | / fn f() {
7LL | | file!();
8LL | | }
9 | |_____- not a `struct`, `enum` or `union`
8faf50e0 10
136023e0 11error[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 14LL | #[derive(Debug)]
136023e0
XL
15 | ^^^^^^^^^^^^^^^^ not applicable here
16LL | fn f();
17 | ------- not a `struct`, `enum` or `union`
8faf50e0 18
136023e0 19error[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 22LL | #[derive(Debug)]
136023e0
XL
23 | ^^^^^^^^^^^^^^^^ not applicable here
24LL | type F;
25 | ------- not a `struct`, `enum` or `union`
8faf50e0
XL
26
27error: aborting due to 3 previous errors
28
1b1a35ee 29For more information about this error, try `rustc --explain E0774`.