fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
740 B26 linesraw
1error[E0369]: binary operation `==` cannot be applied to type `A`
2  --> $DIR/issue-62375.rs:7:7
3   |
4LL |     a == A::Value;
5   |     - ^^ -------- fn(()) -> A {A::Value}
6   |     |
7   |     A
8   |
9note: an implementation of `PartialEq<fn(()) -> A {A::Value}>` might be missing for `A`
10  --> $DIR/issue-62375.rs:1:1
11   |
12LL | enum A {
13   | ^^^^^^ must implement `PartialEq<fn(()) -> A {A::Value}>`
14help: consider annotating `A` with `#[derive(PartialEq)]`
15   |
16LL + #[derive(PartialEq)]
17LL | enum A {
18   |
19help: use parentheses to construct this tuple variant
20   |
21LL |     a == A::Value(/* () */);
22   |                  ++++++++++
23
24error: aborting due to previous error
25
26For more information about this error, try `rustc --explain E0369`.