]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-59488.stderr
b49f5e35f42265153e27c868cef4a6e8e2b41bfb
[rust.git] / src / test / ui / issues / issue-59488.stderr
1 error[E0369]: binary operation `>` cannot be applied to type `fn() -> i32 {foo}`
2   --> $DIR/issue-59488.rs:12:9
3    |
4 LL |     foo > 12;
5    |     --- ^ -- {integer}
6    |     |
7    |     fn() -> i32 {foo}
8    |     help: you might have forgotten to call this function: `foo()`
9    |
10    = note: an implementation of `std::cmp::PartialOrd` might be missing for `fn() -> i32 {foo}`
11
12 error[E0308]: mismatched types
13   --> $DIR/issue-59488.rs:12:11
14    |
15 LL |     foo > 12;
16    |           ^^ expected fn item, found integer
17    |
18    = note: expected type `fn() -> i32 {foo}`
19               found type `i32`
20
21 error[E0369]: binary operation `>` cannot be applied to type `fn(i64) -> i64 {bar}`
22   --> $DIR/issue-59488.rs:16:9
23    |
24 LL |     bar > 13;
25    |     --- ^ -- {integer}
26    |     |
27    |     fn(i64) -> i64 {bar}
28    |     help: you might have forgotten to call this function: `bar( /* arguments */ )`
29    |
30    = note: an implementation of `std::cmp::PartialOrd` might be missing for `fn(i64) -> i64 {bar}`
31
32 error[E0308]: mismatched types
33   --> $DIR/issue-59488.rs:16:11
34    |
35 LL |     bar > 13;
36    |           ^^ expected fn item, found integer
37    |
38    = note: expected type `fn(i64) -> i64 {bar}`
39               found type `i64`
40
41 error[E0369]: binary operation `>` cannot be applied to type `fn() -> i32 {foo}`
42   --> $DIR/issue-59488.rs:20:9
43    |
44 LL |     foo > foo;
45    |     --- ^ --- fn() -> i32 {foo}
46    |     |
47    |     fn() -> i32 {foo}
48    |
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
51    |
52 LL |     foo() > foo;
53    |     ^^^^^
54 help: you might have forgotten to call this function
55    |
56 LL |     foo > foo();
57    |           ^^^^^
58
59 error[E0369]: binary operation `>` cannot be applied to type `fn() -> i32 {foo}`
60   --> $DIR/issue-59488.rs:23:9
61    |
62 LL |     foo > bar;
63    |     --- ^ --- fn(i64) -> i64 {bar}
64    |     |
65    |     fn() -> i32 {foo}
66    |
67    = note: an implementation of `std::cmp::PartialOrd` might be missing for `fn() -> i32 {foo}`
68
69 error[E0308]: mismatched types
70   --> $DIR/issue-59488.rs:23:11
71    |
72 LL |     foo > bar;
73    |           ^^^ expected fn item, found a different fn item
74    |
75    = note: expected type `fn() -> i32 {foo}`
76               found type `fn(i64) -> i64 {bar}`
77
78 error: aborting due to 7 previous errors
79
80 Some errors occurred: E0308, E0369.
81 For more information about an error, try `rustc --explain E0308`.