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