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 = note: an implementation of `std::cmp::PartialOrd` might be missing for `fn() -> i32 {foo}`
12 error[E0308]: mismatched types
13 --> $DIR/issue-59488.rs:12:11
16 | ^^ expected fn item, found integer
18 = note: expected type `fn() -> i32 {foo}`
21 error[E0369]: binary operation `>` cannot be applied to type `fn(i64) -> i64 {bar}`
22 --> $DIR/issue-59488.rs:16:9
27 | fn(i64) -> i64 {bar}
28 | help: you might have forgotten to call this function: `bar( /* arguments */ )`
30 = note: an implementation of `std::cmp::PartialOrd` might be missing for `fn(i64) -> i64 {bar}`
32 error[E0308]: mismatched types
33 --> $DIR/issue-59488.rs:16:11
36 | ^^ expected fn item, found integer
38 = note: expected type `fn(i64) -> i64 {bar}`
41 error[E0369]: binary operation `>` cannot be applied to type `fn() -> i32 {foo}`
42 --> $DIR/issue-59488.rs:20:9
45 | --- ^ --- fn() -> i32 {foo}
49 = note: an implementation of `std::cmp::PartialOrd` might be missing for `fn() -> i32 {foo}`
50 help: you might have forgotten to call this function
54 help: you might have forgotten to call this function
59 error[E0369]: binary operation `>` cannot be applied to type `fn() -> i32 {foo}`
60 --> $DIR/issue-59488.rs:23:9
63 | --- ^ --- fn(i64) -> i64 {bar}
67 = note: an implementation of `std::cmp::PartialOrd` might be missing for `fn() -> i32 {foo}`
69 error[E0308]: mismatched types
70 --> $DIR/issue-59488.rs:23:11
73 | ^^^ expected fn item, found a different fn item
75 = note: expected type `fn() -> i32 {foo}`
76 found type `fn(i64) -> i64 {bar}`
78 error: aborting due to 7 previous errors
80 Some errors occurred: E0308, E0369.
81 For more information about an error, try `rustc --explain E0308`.