1 error[E0369]: binary operation `>` cannot be applied to type `fn() -> i32 {foo}`
2 --> $DIR/issue-59488.rs:12:9
8 | help: you might have forgotten to call this function: `foo()`
10 error[E0308]: mismatched types
11 --> $DIR/issue-59488.rs:12:11
14 | ^^ expected fn item, found integer
16 = note: expected type `fn() -> i32 {foo}`
19 error[E0369]: binary operation `>` cannot be applied to type `fn(i64) -> i64 {bar}`
20 --> $DIR/issue-59488.rs:16:9
25 | fn(i64) -> i64 {bar}
26 | help: you might have forgotten to call this function: `bar( /* arguments */ )`
28 error[E0308]: mismatched types
29 --> $DIR/issue-59488.rs:16:11
32 | ^^ expected fn item, found integer
34 = note: expected type `fn(i64) -> i64 {bar}`
37 error[E0369]: binary operation `>` cannot be applied to type `fn() -> i32 {foo}`
38 --> $DIR/issue-59488.rs:20:9
41 | --- ^ --- fn() -> i32 {foo}
44 help: you might have forgotten to call this function
48 help: you might have forgotten to call this function
53 error[E0369]: binary operation `>` cannot be applied to type `fn() -> i32 {foo}`
54 --> $DIR/issue-59488.rs:23:9
57 | --- ^ --- fn(i64) -> i64 {bar}
61 = note: an implementation of `std::cmp::PartialOrd` might be missing for `fn() -> i32 {foo}`
63 error[E0308]: mismatched types
64 --> $DIR/issue-59488.rs:23:11
67 | ^^^ expected fn item, found a different fn item
69 = note: expected type `fn() -> i32 {foo}`
70 found type `fn(i64) -> i64 {bar}`
72 error: aborting due to 7 previous errors
74 Some errors occurred: E0308, E0369.
75 For more information about an error, try `rustc --explain E0308`.