1 error[E0369]: binary operation `>` cannot be applied to type `fn() -> i32 {foo}`
2 --> $DIR/issue-59488.rs:14:9
9 help: you might have forgotten to call this function
14 error[E0308]: mismatched types
15 --> $DIR/issue-59488.rs:14:11
18 | ^^ expected fn item, found integer
20 = note: expected fn item `fn() -> i32 {foo}`
23 error[E0369]: binary operation `>` cannot be applied to type `fn(i64) -> i64 {bar}`
24 --> $DIR/issue-59488.rs:18:9
29 | fn(i64) -> i64 {bar}
31 help: you might have forgotten to call this function
33 LL | bar( /* arguments */ ) > 13;
36 error[E0308]: mismatched types
37 --> $DIR/issue-59488.rs:18:11
40 | ^^ expected fn item, found integer
42 = note: expected fn item `fn(i64) -> i64 {bar}`
45 error[E0369]: binary operation `>` cannot be applied to type `fn() -> i32 {foo}`
46 --> $DIR/issue-59488.rs:22:9
49 | --- ^ --- fn() -> i32 {foo}
53 help: you might have forgotten to call this function
57 help: you might have forgotten to call this function
62 error[E0369]: binary operation `>` cannot be applied to type `fn() -> i32 {foo}`
63 --> $DIR/issue-59488.rs:25:9
66 | --- ^ --- fn(i64) -> i64 {bar}
70 error[E0308]: mismatched types
71 --> $DIR/issue-59488.rs:25:11
74 | ^^^ expected fn item, found a different fn item
76 = note: expected fn item `fn() -> i32 {foo}`
77 found fn item `fn(i64) -> i64 {bar}`
79 error[E0369]: binary operation `==` cannot be applied to type `fn(usize) -> Foo {Foo::Bar}`
80 --> $DIR/issue-59488.rs:30:5
82 LL | assert_eq!(Foo::Bar, i);
83 | ^^^^^^^^^^^^^^^^^^^^^^^
85 | fn(usize) -> Foo {Foo::Bar}
86 | fn(usize) -> Foo {Foo::Bar}
88 = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
90 error[E0277]: `fn(usize) -> Foo {Foo::Bar}` doesn't implement `Debug`
91 --> $DIR/issue-59488.rs:30:5
93 LL | assert_eq!(Foo::Bar, i);
94 | ^^^^^^^^^^^^^^^^^^^^^^^ `fn(usize) -> Foo {Foo::Bar}` cannot be formatted using `{:?}` because it doesn't implement `Debug`
96 = help: the trait `Debug` is not implemented for `fn(usize) -> Foo {Foo::Bar}`
97 = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
99 error: aborting due to 9 previous errors
101 Some errors have detailed explanations: E0277, E0308, E0369.
102 For more information about an error, try `rustc --explain E0277`.