fork/rust

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

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

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