fork/rust

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

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

master
779 B24 linesraw
1error[E0369]: binary operation `==` cannot be applied to type `Error`
2  --> $DIR/derives-span-PartialEq-enum.rs:9:6
3   |
4LL | #[derive(PartialEq)]
5   |          --------- in this derive macro expansion
6...
7LL |      Error
8   |      ^^^^^
9   |
10note: an implementation of `PartialEq` might be missing for `Error`
11  --> $DIR/derives-span-PartialEq-enum.rs:4:1
12   |
13LL | struct Error;
14   | ^^^^^^^^^^^^ must implement `PartialEq`
15   = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
16help: consider annotating `Error` with `#[derive(PartialEq)]`
17   |
18LL + #[derive(PartialEq)]
19LL | struct Error;
20   |
21
22error: aborting due to previous error
23
24For more information about this error, try `rustc --explain E0369`.