]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-59488.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / issues / issue-59488.stderr
CommitLineData
48663c56
XL
1error[E0369]: binary operation `>` cannot be applied to type `fn() -> i32 {foo}`
2 --> $DIR/issue-59488.rs:14:9
3 |
4LL | foo > 12;
5 | --- ^ -- {integer}
6 | |
7 | fn() -> i32 {foo}
8 | help: you might have forgotten to call this function: `foo()`
9
10error[E0308]: mismatched types
11 --> $DIR/issue-59488.rs:14:11
12 |
13LL | foo > 12;
14 | ^^ expected fn item, found integer
15 |
60c5eb7d
XL
16 = note: expected fn item `fn() -> i32 {foo}`
17 found type `i32`
48663c56
XL
18
19error[E0369]: binary operation `>` cannot be applied to type `fn(i64) -> i64 {bar}`
20 --> $DIR/issue-59488.rs:18:9
21 |
22LL | bar > 13;
23 | --- ^ -- {integer}
24 | |
25 | fn(i64) -> i64 {bar}
26 | help: you might have forgotten to call this function: `bar( /* arguments */ )`
27
28error[E0308]: mismatched types
29 --> $DIR/issue-59488.rs:18:11
30 |
31LL | bar > 13;
32 | ^^ expected fn item, found integer
33 |
60c5eb7d
XL
34 = note: expected fn item `fn(i64) -> i64 {bar}`
35 found type `i64`
48663c56
XL
36
37error[E0369]: binary operation `>` cannot be applied to type `fn() -> i32 {foo}`
38 --> $DIR/issue-59488.rs:22:9
39 |
40LL | foo > foo;
41 | --- ^ --- fn() -> i32 {foo}
42 | |
43 | fn() -> i32 {foo}
e74abb32 44 |
48663c56
XL
45help: you might have forgotten to call this function
46 |
47LL | foo() > foo;
48 | ^^^^^
49help: you might have forgotten to call this function
50 |
51LL | foo > foo();
52 | ^^^^^
53
54error[E0369]: binary operation `>` cannot be applied to type `fn() -> i32 {foo}`
55 --> $DIR/issue-59488.rs:25:9
56 |
57LL | foo > bar;
58 | --- ^ --- fn(i64) -> i64 {bar}
59 | |
60 | fn() -> i32 {foo}
48663c56
XL
61
62error[E0308]: mismatched types
63 --> $DIR/issue-59488.rs:25:11
64 |
65LL | foo > bar;
66 | ^^^ expected fn item, found a different fn item
67 |
60c5eb7d
XL
68 = note: expected fn item `fn() -> i32 {foo}`
69 found fn item `fn(i64) -> i64 {bar}`
48663c56
XL
70
71error[E0369]: binary operation `==` cannot be applied to type `fn(usize) -> Foo {Foo::Bar}`
72 --> $DIR/issue-59488.rs:30:5
73 |
74LL | assert_eq!(Foo::Bar, i);
75 | ^^^^^^^^^^^^^^^^^^^^^^^^
76 | |
77 | fn(usize) -> Foo {Foo::Bar}
78 | fn(usize) -> Foo {Foo::Bar}
79 |
74b04a01 80 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
48663c56 81
1b1a35ee 82error[E0277]: `fn(usize) -> Foo {Foo::Bar}` doesn't implement `Debug`
48663c56
XL
83 --> $DIR/issue-59488.rs:30:5
84 |
85LL | assert_eq!(Foo::Bar, i);
1b1a35ee 86 | ^^^^^^^^^^^^^^^^^^^^^^^^ `fn(usize) -> Foo {Foo::Bar}` cannot be formatted using `{:?}` because it doesn't implement `Debug`
48663c56 87 |
1b1a35ee
XL
88 = help: the trait `Debug` is not implemented for `fn(usize) -> Foo {Foo::Bar}`
89 = note: required because of the requirements on the impl of `Debug` for `&fn(usize) -> Foo {Foo::Bar}`
48663c56 90 = note: required by `std::fmt::Debug::fmt`
74b04a01 91 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
48663c56 92
1b1a35ee 93error[E0277]: `fn(usize) -> Foo {Foo::Bar}` doesn't implement `Debug`
48663c56
XL
94 --> $DIR/issue-59488.rs:30:5
95 |
96LL | assert_eq!(Foo::Bar, i);
1b1a35ee 97 | ^^^^^^^^^^^^^^^^^^^^^^^^ `fn(usize) -> Foo {Foo::Bar}` cannot be formatted using `{:?}` because it doesn't implement `Debug`
48663c56 98 |
1b1a35ee
XL
99 = help: the trait `Debug` is not implemented for `fn(usize) -> Foo {Foo::Bar}`
100 = note: required because of the requirements on the impl of `Debug` for `&fn(usize) -> Foo {Foo::Bar}`
48663c56 101 = note: required by `std::fmt::Debug::fmt`
74b04a01 102 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
48663c56
XL
103
104error: aborting due to 10 previous errors
105
106Some errors have detailed explanations: E0277, E0308, E0369.
107For more information about an error, try `rustc --explain E0277`.