1 error[E0369]: binary operation `>` cannot be applied to type `fn() -> i32 {foo}`
2 --> $DIR/issue-59488.rs:14:9
8 | help: you might have forgotten to call this function: `foo()`
10 error[E0308]: mismatched types
11 --> $DIR/issue-59488.rs:14:11
14 | ^^ expected fn item, found integer
16 = note: expected fn item `fn() -> i32 {foo}`
19 error[E0369]: binary operation `>` cannot be applied to type `fn(i64) -> i64 {bar}`
20 --> $DIR/issue-59488.rs:18: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:18:11
32 | ^^ expected fn item, found integer
34 = note: expected fn item `fn(i64) -> i64 {bar}`
37 error[E0369]: binary operation `>` cannot be applied to type `fn() -> i32 {foo}`
38 --> $DIR/issue-59488.rs:22:9
41 | --- ^ --- fn() -> i32 {foo}
45 help: you might have forgotten to call this function
49 help: you might have forgotten to call this function
54 error[E0369]: binary operation `>` cannot be applied to type `fn() -> i32 {foo}`
55 --> $DIR/issue-59488.rs:25:9
58 | --- ^ --- fn(i64) -> i64 {bar}
62 error[E0308]: mismatched types
63 --> $DIR/issue-59488.rs:25:11
66 | ^^^ expected fn item, found a different fn item
68 = note: expected fn item `fn() -> i32 {foo}`
69 found fn item `fn(i64) -> i64 {bar}`
71 error[E0369]: binary operation `==` cannot be applied to type `fn(usize) -> Foo {Foo::Bar}`
72 --> $DIR/issue-59488.rs:30:5
74 LL | assert_eq!(Foo::Bar, i);
75 | ^^^^^^^^^^^^^^^^^^^^^^^^
77 | fn(usize) -> Foo {Foo::Bar}
78 | fn(usize) -> Foo {Foo::Bar}
80 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
82 error[E0277]: `fn(usize) -> Foo {Foo::Bar}` doesn't implement `Debug`
83 --> $DIR/issue-59488.rs:30:5
85 LL | assert_eq!(Foo::Bar, i);
86 | ^^^^^^^^^^^^^^^^^^^^^^^^ `fn(usize) -> Foo {Foo::Bar}` cannot be formatted using `{:?}` because it doesn't implement `Debug`
88 ::: $SRC_DIR/core/src/panicking.rs:LL:COL
90 LL | T: fmt::Debug + ?Sized,
91 | ---------- required by this bound in `core::panicking::assert_failed`
93 = help: the trait `Debug` is not implemented for `fn(usize) -> Foo {Foo::Bar}`
94 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
96 error: aborting due to 9 previous errors
98 Some errors have detailed explanations: E0277, E0308, E0369.
99 For more information about an error, try `rustc --explain E0277`.