@@ -272,9 +272,9 @@ note: an implementation of `PartialOrd<_>` might be missing for `A`
272272 |
273273LL | struct A;
274274 | ^^^^^^^^^ must implement `PartialOrd<_>`
275- help: consider annotating `A` with `#[derive(PartialOrd)]`
275+ help: consider annotating `A` with `#[derive(PartialEq, PartialOrd)]`
276276 |
277- LL | #[derive(PartialOrd)]
277+ LL | #[derive(PartialEq, PartialOrd)]
278278 |
279279
280280error[E0369]: binary operation `<=` cannot be applied to type `A`
@@ -290,9 +290,9 @@ note: an implementation of `PartialOrd<_>` might be missing for `A`
290290 |
291291LL | struct A;
292292 | ^^^^^^^^^ must implement `PartialOrd<_>`
293- help: consider annotating `A` with `#[derive(PartialOrd)]`
293+ help: consider annotating `A` with `#[derive(PartialEq, PartialOrd)]`
294294 |
295- LL | #[derive(PartialOrd)]
295+ LL | #[derive(PartialEq, PartialOrd)]
296296 |
297297
298298error[E0369]: binary operation `>` cannot be applied to type `A`
@@ -308,9 +308,9 @@ note: an implementation of `PartialOrd<_>` might be missing for `A`
308308 |
309309LL | struct A;
310310 | ^^^^^^^^^ must implement `PartialOrd<_>`
311- help: consider annotating `A` with `#[derive(PartialOrd)]`
311+ help: consider annotating `A` with `#[derive(PartialEq, PartialOrd)]`
312312 |
313- LL | #[derive(PartialOrd)]
313+ LL | #[derive(PartialEq, PartialOrd)]
314314 |
315315
316316error[E0369]: binary operation `>=` cannot be applied to type `A`
@@ -326,9 +326,9 @@ note: an implementation of `PartialOrd<_>` might be missing for `A`
326326 |
327327LL | struct A;
328328 | ^^^^^^^^^ must implement `PartialOrd<_>`
329- help: consider annotating `A` with `#[derive(PartialOrd)]`
329+ help: consider annotating `A` with `#[derive(PartialEq, PartialOrd)]`
330330 |
331- LL | #[derive(PartialOrd)]
331+ LL | #[derive(PartialEq, PartialOrd)]
332332 |
333333
334334error: aborting due to 15 previous errors
0 commit comments