fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0369]: binary operation `==` cannot be applied to type `fn() {main::f}` 2 --> $DIR/fn-compare-mismatch.rs:4:15 3 | 4LL | let x = f == g; 5 | - ^^ - fn() {main::g} 6 | | 7 | fn() {main::f} 8help: you might have forgotten to call this function 9 | 10LL | let x = f() == g; 11 | ^^^ 12help: you might have forgotten to call this function 13 | 14LL | let x = f == g(); 15 | ^^^ 16 17error[E0308]: mismatched types 18 --> $DIR/fn-compare-mismatch.rs:4:18 19 | 20LL | let x = f == g; 21 | ^ expected fn item, found a different fn item 22 | 23 = note: expected type `fn() {main::f}` 24 found type `fn() {main::g}` 25 26error: aborting due to 2 previous errors 27 28Some errors have detailed explanations: E0308, E0369. 29For more information about an error, try `rustc --explain E0308`.