@@ -6,12 +6,15 @@ LL | struct Value(u32);
6
6
| |
7
7
| doesn't satisfy `Value: Eq`
8
8
| doesn't satisfy `Value: Hash`
9
+ | doesn't satisfy `Value: PartialEq`
9
10
...
10
11
LL | hs.insert(Value(0));
11
12
| ^^^^^^
12
13
|
13
14
= note: the following trait bounds were not satisfied:
14
15
`Value: Eq`
16
+ `Value: PartialEq`
17
+ which is required by `Value: Eq`
15
18
`Value: Hash`
16
19
help: consider annotating `Value` with `#[derive(Eq, Hash, PartialEq)]`
17
20
|
@@ -22,7 +25,10 @@ error[E0599]: the method `use_eq` exists for struct `Object<NoDerives>`, but its
22
25
--> $DIR/issue-91550.rs:26:9
23
26
|
24
27
LL | pub struct NoDerives;
25
- | -------------------- doesn't satisfy `NoDerives: Eq`
28
+ | --------------------
29
+ | |
30
+ | doesn't satisfy `NoDerives: Eq`
31
+ | doesn't satisfy `NoDerives: PartialEq`
26
32
LL |
27
33
LL | struct Object<T>(T);
28
34
| ---------------- method `use_eq` not found for this struct
@@ -37,6 +43,9 @@ LL | impl<T: Eq> Object<T> {
37
43
| ^^ ---------
38
44
| |
39
45
| unsatisfied trait bound introduced here
46
+ = note: the following trait bounds were not satisfied:
47
+ `NoDerives: PartialEq`
48
+ which is required by `NoDerives: Eq`
40
49
help: consider annotating `NoDerives` with `#[derive(Eq, PartialEq)]`
41
50
|
42
51
LL | #[derive(Eq, PartialEq)]
@@ -46,7 +55,12 @@ error[E0599]: the method `use_ord` exists for struct `Object<NoDerives>`, but it
46
55
--> $DIR/issue-91550.rs:27:9
47
56
|
48
57
LL | 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`
50
64
LL |
51
65
LL | struct Object<T>(T);
52
66
| ---------------- method `use_ord` not found for this struct
@@ -61,6 +75,13 @@ LL | impl<T: Ord> Object<T> {
61
75
| ^^^ ---------
62
76
| |
63
77
| 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`
64
85
help: consider annotating `NoDerives` with `#[derive(Eq, Ord, PartialEq, PartialOrd)]`
65
86
|
66
87
LL | #[derive(Eq, Ord, PartialEq, PartialOrd)]
@@ -72,7 +93,9 @@ error[E0599]: the method `use_ord_and_partial_ord` exists for struct `Object<NoD
72
93
LL | pub struct NoDerives;
73
94
| --------------------
74
95
| |
96
+ | doesn't satisfy `NoDerives: Eq`
75
97
| doesn't satisfy `NoDerives: Ord`
98
+ | doesn't satisfy `NoDerives: PartialEq`
76
99
| doesn't satisfy `NoDerives: PartialOrd`
77
100
LL |
78
101
LL | struct Object<T>(T);
@@ -91,6 +114,13 @@ LL | impl<T: Ord + PartialOrd> Object<T> {
91
114
| | |
92
115
| | unsatisfied trait bound introduced here
93
116
| 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`
94
124
help: consider annotating `NoDerives` with `#[derive(Eq, Ord, PartialEq, PartialOrd)]`
95
125
|
96
126
LL | #[derive(Eq, Ord, PartialEq, PartialOrd)]
0 commit comments