We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a52983 commit 70dd9caCopy full SHA for 70dd9ca
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