fork/rust

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

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

master
695 B21 linesraw
1error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
2  --> $DIR/derive-on-trait-item-or-impl-item.rs:2:5
3   |
4LL |     #[derive(Clone)]
5   |     ^^^^^^^^^^^^^^^^ not applicable here
6LL |
7LL |     type Bar;
8   |     --------- not a `struct`, `enum` or `union`
9
10error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
11  --> $DIR/derive-on-trait-item-or-impl-item.rs:10:5
12   |
13LL |     #[derive(Clone)]
14   |     ^^^^^^^^^^^^^^^^ not applicable here
15LL |
16LL |     fn bar(&self) {}
17   |     ---------------- not a `struct`, `enum` or `union`
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0774`.