fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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