fork/rust

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

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

master
475 B16 linesraw
1error[E0369]: binary operation `==` cannot be applied to type `for<'a> fn(&'a i32) -> &'a i32 {foo}`
2  --> $DIR/issue-77910-2.rs:7:12
3   |
4LL |     if foo == y {}
5   |        --- ^^ - _
6   |        |
7   |        for<'a> fn(&'a i32) -> &'a i32 {foo}
8   |
9help: use parentheses to call this function
10   |
11LL |     if foo(/* &i32 */) == y {}
12   |           ++++++++++++
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0369`.