]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/issue-104884-trait-impl-sugg-err.stderr
Rollup merge of #106715 - BoxyUwU:new_solver_triagebot, r=lcnr
[rust.git] / tests / ui / proc-macro / issue-104884-trait-impl-sugg-err.stderr
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    = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
11
12 error[E0277]: the trait bound `PriorityQueue<T>: Eq` is not satisfied
13   --> $DIR/issue-104884-trait-impl-sugg-err.rs:13:22
14    |
15 LL | #[derive(PartialOrd, AddImpl)]
16    |                      ^^^^^^^ the trait `Eq` is not implemented for `PriorityQueue<T>`
17    |
18 note: 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
22 error[E0277]: can't compare `T` with `T`
23   --> $DIR/issue-104884-trait-impl-sugg-err.rs:13:22
24    |
25 LL | #[derive(PartialOrd, AddImpl)]
26    |                      ^^^^^^^ no implementation for `T < T` and `T > T`
27    |
28 note: required for `PriorityQueue<T>` to implement `PartialOrd`
29   --> $DIR/issue-104884-trait-impl-sugg-err.rs:13:10
30    |
31 LL | #[derive(PartialOrd, AddImpl)]
32    |          ^^^^^^^^^^
33 note: 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
37 error: aborting due to 3 previous errors
38
39 For more information about this error, try `rustc --explain E0277`.