@@ -36,15 +36,16 @@ LL | struct Object<T>(T);
3636LL | foo.use_eq();
3737 | ^^^^^^ method cannot be called on `Object<NoDerives>` due to unsatisfied trait bounds
3838 |
39- note: the following trait bounds were not satisfied:
40- `NoDerives: Eq`
41- `NoDerives: PartialEq`
39+ note: trait bound `NoDerives: Eq` was not satisfied
4240 --> $DIR/issue-91550.rs:15:9
4341 |
4442LL | impl<T: Eq> Object<T> {
4543 | ^^ ---------
4644 | |
4745 | unsatisfied trait bound introduced here
46+ = note: the following trait bounds were not satisfied:
47+ `NoDerives: PartialEq`
48+ which is required by `NoDerives: Eq`
4849help: consider annotating `NoDerives` with `#[derive(Eq, PartialEq)]`
4950 |
5051LL | #[derive(Eq, PartialEq)]
@@ -67,17 +68,20 @@ LL | struct Object<T>(T);
6768LL | foo.use_ord();
6869 | ^^^^^^^ method cannot be called on `Object<NoDerives>` due to unsatisfied trait bounds
6970 |
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
7572 --> $DIR/issue-91550.rs:18:9
7673 |
7774LL | impl<T: Ord> Object<T> {
7875 | ^^^ ---------
7976 | |
8077 | 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`
8185help: consider annotating `NoDerives` with `#[derive(Eq, Ord, PartialEq, PartialOrd)]`
8286 |
8387LL | #[derive(Eq, Ord, PartialEq, PartialOrd)]
@@ -101,9 +105,7 @@ LL | foo.use_ord_and_partial_ord();
101105 | ^^^^^^^^^^^^^^^^^^^^^^^ method cannot be called on `Object<NoDerives>` due to unsatisfied trait bounds
102106 |
103107note: the following trait bounds were not satisfied:
104- `NoDerives: Eq`
105108 `NoDerives: Ord`
106- `NoDerives: PartialEq`
107109 `NoDerives: PartialOrd`
108110 --> $DIR/issue-91550.rs:21:9
109111 |
@@ -112,6 +114,13 @@ LL | impl<T: Ord + PartialOrd> Object<T> {
112114 | | |
113115 | | unsatisfied trait bound introduced here
114116 | 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`
115124help: consider annotating `NoDerives` with `#[derive(Eq, Ord, PartialEq, PartialOrd)]`
116125 |
117126LL | #[derive(Eq, Ord, PartialEq, PartialOrd)]
0 commit comments