We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8988403 + 70dd9ca commit 2571c1cCopy full SHA for 2571c1c
src/test/ui/issues/issue-34229.rs
@@ -0,0 +1,4 @@
1
+#[derive(PartialEq)] struct Comparable;
2
+#[derive(PartialEq, PartialOrd)] struct Nope(Comparable);
3
+
4
+fn main() {}
src/test/ui/issues/issue-34229.stderr
@@ -0,0 +1,12 @@
+error[E0277]: can't compare `Comparable` with `Comparable`
+ --> $DIR/issue-34229.rs:2:46
+ |
+LL | #[derive(PartialEq, PartialOrd)] struct Nope(Comparable);
5
+ | ^^^^^^^^^^ no implementation for `Comparable < Comparable` and `Comparable > Comparable`
6
7
+ = help: the trait `std::cmp::PartialOrd` is not implemented for `Comparable`
8
+ = note: required by `std::cmp::PartialOrd::partial_cmp`
9
10
+error: aborting due to previous error
11
12
+For more information about this error, try `rustc --explain E0277`.
0 commit comments