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