2019-07-04 09:48:47 -05:00
|
|
|
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
|
|
|
|
|
|
2023-04-26 19:57:13 -05:00
|
|
|
note: an implementation of `PartialEq<fn(()) -> A {A::Value}>` might be missing for `A`
|
2021-09-28 09:48:54 -05:00
|
|
|
--> $DIR/issue-62375.rs:1:1
|
|
|
|
|
|
|
|
|
LL | enum A {
|
2023-04-26 19:57:13 -05:00
|
|
|
| ^^^^^^ must implement `PartialEq<fn(()) -> A {A::Value}>`
|
2023-05-12 15:34:51 -05:00
|
|
|
help: consider annotating `A` with `#[derive(PartialEq)]`
|
|
|
|
|
|
|
|
|
LL + #[derive(PartialEq)]
|
|
|
|
LL | enum A {
|
|
|
|
|
|
2023-04-26 20:32:44 -05:00
|
|
|
help: use parentheses to construct this tuple variant
|
2021-09-28 09:48:54 -05:00
|
|
|
|
|
2023-04-26 20:32:44 -05:00
|
|
|
LL | a == A::Value(/* () */);
|
|
|
|
| ++++++++++
|
2019-07-04 09:48:47 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0369`.
|