@@ -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,15 +25,20 @@ 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
29
35
...
30
36
LL | foo.use_eq();
31
37
| ^^^^^^ method cannot be called on `Object<NoDerives>` due to unsatisfied trait bounds
32
38
|
33
- note: trait bound `NoDerives: Eq` was not satisfied
39
+ note: the following trait bounds were not satisfied:
40
+ `NoDerives: Eq`
41
+ `NoDerives: PartialEq`
34
42
--> $DIR/issue-91550.rs:15:9
35
43
|
36
44
LL | impl<T: Eq> Object<T> {
@@ -46,15 +54,24 @@ error[E0599]: the method `use_ord` exists for struct `Object<NoDerives>`, but it
46
54
--> $DIR/issue-91550.rs:27:9
47
55
|
48
56
LL | 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`
50
63
LL |
51
64
LL | struct Object<T>(T);
52
65
| ---------------- method `use_ord` not found for this struct
53
66
...
54
67
LL | foo.use_ord();
55
68
| ^^^^^^^ method cannot be called on `Object<NoDerives>` due to unsatisfied trait bounds
56
69
|
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`
58
75
--> $DIR/issue-91550.rs:18:9
59
76
|
60
77
LL | impl<T: Ord> Object<T> {
@@ -72,7 +89,9 @@ error[E0599]: the method `use_ord_and_partial_ord` exists for struct `Object<NoD
72
89
LL | pub struct NoDerives;
73
90
| --------------------
74
91
| |
92
+ | doesn't satisfy `NoDerives: Eq`
75
93
| doesn't satisfy `NoDerives: Ord`
94
+ | doesn't satisfy `NoDerives: PartialEq`
76
95
| doesn't satisfy `NoDerives: PartialOrd`
77
96
LL |
78
97
LL | struct Object<T>(T);
@@ -82,7 +101,9 @@ LL | foo.use_ord_and_partial_ord();
82
101
| ^^^^^^^^^^^^^^^^^^^^^^^ method cannot be called on `Object<NoDerives>` due to unsatisfied trait bounds
83
102
|
84
103
note: the following trait bounds were not satisfied:
104
+ `NoDerives: Eq`
85
105
`NoDerives: Ord`
106
+ `NoDerives: PartialEq`
86
107
`NoDerives: PartialOrd`
87
108
--> $DIR/issue-91550.rs:21:9
88
109
|
0 commit comments