@@ -36,15 +36,16 @@ LL | struct Object<T>(T);
36
36
LL | foo.use_eq();
37
37
| ^^^^^^ method cannot be called on `Object<NoDerives>` due to unsatisfied trait bounds
38
38
|
39
- note: the following trait bounds were not satisfied:
40
- `NoDerives: Eq`
41
- `NoDerives: PartialEq`
39
+ note: trait bound `NoDerives: Eq` was not satisfied
42
40
--> $DIR/issue-91550.rs:15:9
43
41
|
44
42
LL | impl<T: Eq> Object<T> {
45
43
| ^^ ---------
46
44
| |
47
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`
48
49
help: consider annotating `NoDerives` with `#[derive(Eq, PartialEq)]`
49
50
|
50
51
LL | #[derive(Eq, PartialEq)]
@@ -67,17 +68,20 @@ LL | struct Object<T>(T);
67
68
LL | foo.use_ord();
68
69
| ^^^^^^^ method cannot be called on `Object<NoDerives>` due to unsatisfied trait bounds
69
70
|
70
- note: the following trait bounds were not satisfied:
71
- `NoDerives: Eq`
72
- `NoDerives: Ord`
73
- `NoDerives: PartialEq`
74
- `NoDerives: PartialOrd`
71
+ note: trait bound `NoDerives: Ord` was not satisfied
75
72
--> $DIR/issue-91550.rs:18:9
76
73
|
77
74
LL | impl<T: Ord> Object<T> {
78
75
| ^^^ ---------
79
76
| |
80
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`
81
85
help: consider annotating `NoDerives` with `#[derive(Eq, Ord, PartialEq, PartialOrd)]`
82
86
|
83
87
LL | #[derive(Eq, Ord, PartialEq, PartialOrd)]
@@ -101,9 +105,7 @@ LL | foo.use_ord_and_partial_ord();
101
105
| ^^^^^^^^^^^^^^^^^^^^^^^ method cannot be called on `Object<NoDerives>` due to unsatisfied trait bounds
102
106
|
103
107
note: the following trait bounds were not satisfied:
104
- `NoDerives: Eq`
105
108
`NoDerives: Ord`
106
- `NoDerives: PartialEq`
107
109
`NoDerives: PartialOrd`
108
110
--> $DIR/issue-91550.rs:21:9
109
111
|
@@ -112,6 +114,13 @@ LL | impl<T: Ord + PartialOrd> Object<T> {
112
114
| | |
113
115
| | unsatisfied trait bound introduced here
114
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`
115
124
help: consider annotating `NoDerives` with `#[derive(Eq, Ord, PartialEq, PartialOrd)]`
116
125
|
117
126
LL | #[derive(Eq, Ord, PartialEq, PartialOrd)]
0 commit comments