1 error[E0369]: binary operation `==` cannot be applied to type `fn() {f}`
2 --> $DIR/fn-compare-mismatch.rs:4:15
9 help: use parentheses to call these
11 LL | let x = f() == g();
14 error[E0308]: mismatched types
15 --> $DIR/fn-compare-mismatch.rs:4:18
18 | ^ expected fn item, found a different fn item
20 = note: expected fn item `fn() {f}`
21 found fn item `fn() {g}`
22 = note: different fn items have unique types, even if their signatures are the same
23 = help: consider casting both fn items to fn pointers using `as fn()`
25 error: aborting due to 2 previous errors
27 Some errors have detailed explanations: E0308, E0369.
28 For more information about an error, try `rustc --explain E0308`.