1 error[E0369]: binary operation `==` cannot be applied to type `fn() {second}`
2 --> $DIR/issue-66667-function-cmp-cycle.rs:2:12
5 | ------ ^^ - {integer}
9 error[E0308]: mismatched types
10 --> $DIR/issue-66667-function-cmp-cycle.rs:2:15
13 | ^ expected fn item, found integer
15 = note: expected fn item `fn() {second}`
16 found type `{integer}`
18 error[E0369]: binary operation `==` cannot be applied to type `fn() {first}`
19 --> $DIR/issue-66667-function-cmp-cycle.rs:7:11
22 | ----- ^^ - {integer}
26 error[E0308]: mismatched types
27 --> $DIR/issue-66667-function-cmp-cycle.rs:7:14
30 | ^ expected fn item, found integer
32 = note: expected fn item `fn() {first}`
33 found type `{integer}`
35 error[E0369]: binary operation `==` cannot be applied to type `fn() {bar}`
36 --> $DIR/issue-66667-function-cmp-cycle.rs:12:9
43 error[E0308]: mismatched types
44 --> $DIR/issue-66667-function-cmp-cycle.rs:12:12
47 | ^ expected fn item, found integer
49 = note: expected fn item `fn() {bar}`
50 found type `{integer}`
52 error: aborting due to 6 previous errors
54 Some errors have detailed explanations: E0308, E0369.
55 For more information about an error, try `rustc --explain E0308`.