fork/rust

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

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

master
1.8 KiB39 linesraw
1error[E0277]: can't compare `PriorityQueue<T>` with `PriorityQueue<T>`
2  --> $DIR/issue-104884-trait-impl-sugg-err.rs:13:10
3   |
4LL | #[derive(PartialOrd, AddImpl)]
5   |          ^^^^^^^^^^ no implementation for `PriorityQueue<T> == PriorityQueue<T>`
6   |
7   = help: the trait `PartialEq` is not implemented for `PriorityQueue<T>`
8note: required by a bound in `PartialOrd`
9  --> $SRC_DIR/core/src/cmp.rs:LL:COL
10   = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
11
12error[E0277]: the trait bound `PriorityQueue<T>: Eq` is not satisfied
13  --> $DIR/issue-104884-trait-impl-sugg-err.rs:13:22
14   |
15LL | #[derive(PartialOrd, AddImpl)]
16   |                      ^^^^^^^ the trait `Eq` is not implemented for `PriorityQueue<T>`
17   |
18note: required by a bound in `Ord`
19  --> $SRC_DIR/core/src/cmp.rs:LL:COL
20   = note: this error originates in the derive macro `AddImpl` (in Nightly builds, run with -Z macro-backtrace for more info)
21
22error[E0277]: can't compare `T` with `T`
23  --> $DIR/issue-104884-trait-impl-sugg-err.rs:13:22
24   |
25LL | #[derive(PartialOrd, AddImpl)]
26   |                      ^^^^^^^ no implementation for `T < T` and `T > T`
27   |
28note: required for `PriorityQueue<T>` to implement `PartialOrd`
29  --> $DIR/issue-104884-trait-impl-sugg-err.rs:13:10
30   |
31LL | #[derive(PartialOrd, AddImpl)]
32   |          ^^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
33note: required by a bound in `Ord`
34  --> $SRC_DIR/core/src/cmp.rs:LL:COL
35   = note: this error originates in the derive macro `AddImpl` which comes from the expansion of the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
36
37error: aborting due to 3 previous errors
38
39For more information about this error, try `rustc --explain E0277`.