We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0beb2ba commit 12672e2Copy full SHA for 12672e2
src/test/ui/issues/issue-62375.rs
@@ -0,0 +1,9 @@
1
+enum A {
2
+ Value(())
3
+}
4
+
5
+fn main() {
6
+ let a = A::Value(());
7
+ a == A::Value;
8
+ //~^ ERROR binary operation `==` cannot be applied to type `A`
9
src/test/ui/issues/issue-62375.stderr
@@ -0,0 +1,13 @@
+error[E0369]: binary operation `==` cannot be applied to type `A`
+ --> $DIR/issue-62375.rs:7:7
+ |
+LL | a == A::Value;
+ | - ^^ -------- fn(()) -> A {A::Value}
+ | |
+ | A
+ = note: an implementation of `std::cmp::PartialEq` might be missing for `A`
10
11
+error: aborting due to previous error
12
13
+For more information about this error, try `rustc --explain E0369`.
0 commit comments