|
| 1 | +error[E0277]: can't compare `PriorityQueue<T>` with `PriorityQueue<T>` |
| 2 | + --> $DIR/issue-104884-trait-impl-sugg-err.rs:13:10 |
| 3 | + | |
| 4 | +LL | #[derive(PartialOrd, AddImpl)] |
| 5 | + | ^^^^^^^^^^ no implementation for `PriorityQueue<T> == PriorityQueue<T>` |
| 6 | + | |
| 7 | + = help: the trait `PartialEq` is not implemented for `PriorityQueue<T>` |
| 8 | +note: required by a bound in `PartialOrd` |
| 9 | + --> $SRC_DIR/core/src/cmp.rs:LL:COL |
| 10 | + | |
| 11 | +LL | pub trait PartialOrd<Rhs: ?Sized = Self>: PartialEq<Rhs> { |
| 12 | + | ^^^^^^^^^^^^^^ required by this bound in `PartialOrd` |
| 13 | + = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 14 | + |
| 15 | +error[E0277]: the trait bound `PriorityQueue<T>: Eq` is not satisfied |
| 16 | + --> $DIR/issue-104884-trait-impl-sugg-err.rs:13:22 |
| 17 | + | |
| 18 | +LL | #[derive(PartialOrd, AddImpl)] |
| 19 | + | ^^^^^^^ the trait `Eq` is not implemented for `PriorityQueue<T>` |
| 20 | + | |
| 21 | +note: required by a bound in `Ord` |
| 22 | + --> $SRC_DIR/core/src/cmp.rs:LL:COL |
| 23 | + | |
| 24 | +LL | pub trait Ord: Eq + PartialOrd<Self> { |
| 25 | + | ^^ required by this bound in `Ord` |
| 26 | + = note: this error originates in the derive macro `AddImpl` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 27 | + |
| 28 | +error[E0277]: can't compare `T` with `T` |
| 29 | + --> $DIR/issue-104884-trait-impl-sugg-err.rs:13:22 |
| 30 | + | |
| 31 | +LL | #[derive(PartialOrd, AddImpl)] |
| 32 | + | ^^^^^^^ no implementation for `T < T` and `T > T` |
| 33 | + | |
| 34 | +note: required for `PriorityQueue<T>` to implement `PartialOrd` |
| 35 | + --> $DIR/issue-104884-trait-impl-sugg-err.rs:13:10 |
| 36 | + | |
| 37 | +LL | #[derive(PartialOrd, AddImpl)] |
| 38 | + | ^^^^^^^^^^ |
| 39 | +note: required by a bound in `Ord` |
| 40 | + --> $SRC_DIR/core/src/cmp.rs:LL:COL |
| 41 | + | |
| 42 | +LL | pub trait Ord: Eq + PartialOrd<Self> { |
| 43 | + | ^^^^^^^^^^^^^^^^ required by this bound in `Ord` |
| 44 | + = 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) |
| 45 | + |
| 46 | +error: aborting due to 3 previous errors |
| 47 | + |
| 48 | +For more information about this error, try `rustc --explain E0277`. |
0 commit comments