fork/rust

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

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

master
714 B20 linesraw
1error[E0277]: can't compare `Error` with `Error`
2  --> $DIR/derives-span-PartialOrd-enum.rs:9:6
3   |
4LL | #[derive(PartialOrd,PartialEq)]
5   |          ---------- in this derive macro expansion
6...
7LL |      Error
8   |      ^^^^^ no implementation for `Error < Error` and `Error > Error`
9   |
10   = help: the trait `PartialOrd` is not implemented for `Error`
11   = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
12help: consider annotating `Error` with `#[derive(PartialOrd)]`
13   |
14LL + #[derive(PartialOrd)]
15LL | struct Error;
16   |
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0277`.