@@ -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,7 +25,10 @@ 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
@@ -37,6 +43,9 @@ LL | impl<T: Eq> Object<T> {
3743 | ^^ ---------
3844 | |
3945 | unsatisfied trait bound introduced here
46+ = note: the following trait bounds were not satisfied:
47+ `NoDerives: PartialEq`
48+ which is required by `NoDerives: Eq`
4049help: consider annotating `NoDerives` with `#[derive(Eq, PartialEq)]`
4150 |
4251LL | #[derive(Eq, PartialEq)]
@@ -46,7 +55,12 @@ error[E0599]: the method `use_ord` exists for struct `Object<NoDerives>`, but it
4655 --> $DIR/issue-91550.rs:27:9
4756 |
4857LL | pub struct NoDerives;
49- | -------------------- doesn't satisfy `NoDerives: Ord`
58+ | --------------------
59+ | |
60+ | doesn't satisfy `NoDerives: Eq`
61+ | doesn't satisfy `NoDerives: Ord`
62+ | doesn't satisfy `NoDerives: PartialEq`
63+ | doesn't satisfy `NoDerives: PartialOrd`
5064LL |
5165LL | struct Object<T>(T);
5266 | ---------------- method `use_ord` not found for this struct
@@ -61,6 +75,13 @@ LL | impl<T: Ord> Object<T> {
6175 | ^^^ ---------
6276 | |
6377 | unsatisfied trait bound introduced here
78+ = note: the following trait bounds were not satisfied:
79+ `NoDerives: PartialOrd`
80+ which is required by `NoDerives: Ord`
81+ `NoDerives: PartialEq`
82+ which is required by `NoDerives: Ord`
83+ `NoDerives: Eq`
84+ which is required by `NoDerives: Ord`
6485help: consider annotating `NoDerives` with `#[derive(Eq, Ord, PartialEq, PartialOrd)]`
6586 |
6687LL | #[derive(Eq, Ord, PartialEq, PartialOrd)]
@@ -72,7 +93,9 @@ error[E0599]: the method `use_ord_and_partial_ord` exists for struct `Object<NoD
7293LL | pub struct NoDerives;
7394 | --------------------
7495 | |
96+ | doesn't satisfy `NoDerives: Eq`
7597 | doesn't satisfy `NoDerives: Ord`
98+ | doesn't satisfy `NoDerives: PartialEq`
7699 | doesn't satisfy `NoDerives: PartialOrd`
77100LL |
78101LL | struct Object<T>(T);
@@ -91,6 +114,13 @@ LL | impl<T: Ord + PartialOrd> Object<T> {
91114 | | |
92115 | | unsatisfied trait bound introduced here
93116 | unsatisfied trait bound introduced here
117+ = note: the following trait bounds were not satisfied:
118+ `NoDerives: PartialEq`
119+ which is required by `NoDerives: Ord`
120+ `NoDerives: Eq`
121+ which is required by `NoDerives: Ord`
122+ `NoDerives: PartialEq`
123+ which is required by `NoDerives: PartialOrd`
94124help: consider annotating `NoDerives` with `#[derive(Eq, Ord, PartialEq, PartialOrd)]`
95125 |
96126LL | #[derive(Eq, Ord, PartialEq, PartialOrd)]
0 commit comments