1 error[E0369]: binary operation `==` cannot be applied to type `fn() {main::f}`
2 --> $DIR/fn-compare-mismatch.rs:14:13
7 = note: an implementation of `std::cmp::PartialEq` might be missing for `fn() {main::f}`
9 error[E0308]: mismatched types
10 --> $DIR/fn-compare-mismatch.rs:14:18
13 | ^ expected fn item, found a different fn item
15 = note: expected type `fn() {main::f}`
16 found type `fn() {main::g}`
18 error: aborting due to 2 previous errors
20 Some errors occurred: E0308, E0369.
21 For more information about an error, try `rustc --explain E0308`.