1 error[E0369]: binary operation `==` cannot be applied to type `fn() {f}`
2 --> $DIR/fn-compare-mismatch.rs:4:15
9 help: you might have forgotten to call this function
11 LL | let x = f() == g;
13 help: you might have forgotten to call this function
15 LL | let x = f == g();
18 error[E0308]: mismatched types
19 --> $DIR/fn-compare-mismatch.rs:4:18
22 | ^ expected fn item, found a different fn item
24 = note: expected fn item `fn() {f}`
25 found fn item `fn() {g}`
27 error: aborting due to 2 previous errors
29 Some errors have detailed explanations: E0308, E0369.
30 For more information about an error, try `rustc --explain E0308`.