@@ -6,12 +6,15 @@ LL | struct Value(u32);
66 | |
77 | doesn't satisfy `Value: Eq`
88 | doesn't satisfy `Value: Hash`
9+ | doesn't satisfy `Value: PartialEq`
910...
1011LL | hs.insert(Value(0));
1112 | ^^^^^^
1213 |
1314 = note: the following trait bounds were not satisfied:
1415 `Value: Eq`
16+ `Value: PartialEq`
17+ which is required by `Value: Eq`
1518 `Value: Hash`
1619help: consider annotating `Value` with `#[derive(Eq, Hash, PartialEq)]`
1720 |
@@ -22,15 +25,20 @@ error[E0599]: the method `use_eq` exists for struct `Object<NoDerives>`, but its
2225 --> $DIR/issue-91550.rs:26:9
2326 |
2427LL | pub struct NoDerives;
25- | -------------------- doesn't satisfy `NoDerives: Eq`
28+ | --------------------
29+ | |
30+ | doesn't satisfy `NoDerives: Eq`
31+ | doesn't satisfy `NoDerives: PartialEq`
2632LL |
2733LL | struct Object<T>(T);
2834 | ---------------- method `use_eq` not found for this struct
2935...
3036LL | foo.use_eq();
3137 | ^^^^^^ method cannot be called on `Object<NoDerives>` due to unsatisfied trait bounds
3238 |
33- note: trait bound `NoDerives: Eq` was not satisfied
39+ note: the following trait bounds were not satisfied:
40+ `NoDerives: Eq`
41+ `NoDerives: PartialEq`
3442 --> $DIR/issue-91550.rs:15:9
3543 |
3644LL | impl<T: Eq> Object<T> {
@@ -46,15 +54,24 @@ error[E0599]: the method `use_ord` exists for struct `Object<NoDerives>`, but it
4654 --> $DIR/issue-91550.rs:27:9
4755 |
4856LL | pub struct NoDerives;
49- | -------------------- doesn't satisfy `NoDerives: Ord`
57+ | --------------------
58+ | |
59+ | doesn't satisfy `NoDerives: Eq`
60+ | doesn't satisfy `NoDerives: Ord`
61+ | doesn't satisfy `NoDerives: PartialEq`
62+ | doesn't satisfy `NoDerives: PartialOrd`
5063LL |
5164LL | struct Object<T>(T);
5265 | ---------------- method `use_ord` not found for this struct
5366...
5467LL | foo.use_ord();
5568 | ^^^^^^^ method cannot be called on `Object<NoDerives>` due to unsatisfied trait bounds
5669 |
57- note: trait bound `NoDerives: Ord` was not satisfied
70+ note: the following trait bounds were not satisfied:
71+ `NoDerives: Eq`
72+ `NoDerives: Ord`
73+ `NoDerives: PartialEq`
74+ `NoDerives: PartialOrd`
5875 --> $DIR/issue-91550.rs:18:9
5976 |
6077LL | impl<T: Ord> Object<T> {
@@ -72,7 +89,9 @@ error[E0599]: the method `use_ord_and_partial_ord` exists for struct `Object<NoD
7289LL | pub struct NoDerives;
7390 | --------------------
7491 | |
92+ | doesn't satisfy `NoDerives: Eq`
7593 | doesn't satisfy `NoDerives: Ord`
94+ | doesn't satisfy `NoDerives: PartialEq`
7695 | doesn't satisfy `NoDerives: PartialOrd`
7796LL |
7897LL | struct Object<T>(T);
@@ -82,7 +101,9 @@ LL | foo.use_ord_and_partial_ord();
82101 | ^^^^^^^^^^^^^^^^^^^^^^^ method cannot be called on `Object<NoDerives>` due to unsatisfied trait bounds
83102 |
84103note: the following trait bounds were not satisfied:
104+ `NoDerives: Eq`
85105 `NoDerives: Ord`
106+ `NoDerives: PartialEq`
86107 `NoDerives: PartialOrd`
87108 --> $DIR/issue-91550.rs:21:9
88109 |
0 commit comments