1 // ignore-tidy-linelength
7 fn bar(a: i64) -> i64 {
13 //~^ ERROR 12:9: 12:10: binary operation `>` cannot be applied to type `fn() -> i32 {foo}` [E0369]
14 //~| ERROR 12:11: 12:13: mismatched types [E0308]
17 //~^ ERROR 16:9: 16:10: binary operation `>` cannot be applied to type `fn(i64) -> i64 {bar}` [E0369]
18 //~| ERROR 16:11: 16:13: mismatched types [E0308]
21 //~^ ERROR 20:9: 20:10: binary operation `>` cannot be applied to type `fn() -> i32 {foo}` [E0369]
24 //~^ ERROR 23:9: 23:10: binary operation `>` cannot be applied to type `fn() -> i32 {foo}` [E0369]
25 //~| ERROR 23:11: 23:14: mismatched types [E0308]