]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fn/fn-compare-mismatch.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / fn / fn-compare-mismatch.stderr
1 error[E0369]: binary operation `==` cannot be applied to type `fn() {main::f}`
2   --> $DIR/fn-compare-mismatch.rs:14:13
3    |
4 LL |     let x = f == g;
5    |             ^^^^^^
6    |
7    = note: an implementation of `std::cmp::PartialEq` might be missing for `fn() {main::f}`
8
9 error[E0308]: mismatched types
10   --> $DIR/fn-compare-mismatch.rs:14:18
11    |
12 LL |     let x = f == g;
13    |                  ^ expected fn item, found a different fn item
14    |
15    = note: expected type `fn() {main::f}`
16               found type `fn() {main::g}`
17
18 error: aborting due to 2 previous errors
19
20 Some errors occurred: E0308, E0369.
21 For more information about an error, try `rustc --explain E0308`.