]>
Commit | Line | Data |
---|---|---|
fc512014 XL |
1 | error[E0369]: binary operation `==` cannot be applied to type `for<'r> fn(&'r i32) -> &'r i32 {foo}` |
2 | --> $DIR/issue-77910-1.rs:8:5 | |
3 | | | |
4 | LL | assert_eq!(foo, y); | |
c295e0f8 | 5 | | ^^^^^^^^^^^^^^^^^^ |
fc512014 XL |
6 | | | |
7 | | for<'r> fn(&'r i32) -> &'r i32 {foo} | |
8 | | _ | |
9 | | | |
17df50a5 | 10 | = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) |
fc512014 XL |
11 | |
12 | error[E0277]: `for<'r> fn(&'r i32) -> &'r i32 {foo}` doesn't implement `Debug` | |
13 | --> $DIR/issue-77910-1.rs:8:5 | |
14 | | | |
15 | LL | assert_eq!(foo, y); | |
c295e0f8 | 16 | | ^^^^^^^^^^^^^^^^^^ `for<'r> fn(&'r i32) -> &'r i32 {foo}` cannot be formatted using `{:?}` because it doesn't implement `Debug` |
fc512014 XL |
17 | | |
18 | = help: the trait `Debug` is not implemented for `for<'r> fn(&'r i32) -> &'r i32 {foo}` | |
04454e1e FG |
19 | = help: the following other types implement trait `Debug`: |
20 | extern "C" fn() -> Ret | |
21 | extern "C" fn(A) -> Ret | |
22 | extern "C" fn(A, ...) -> Ret | |
23 | extern "C" fn(A, B) -> Ret | |
24 | extern "C" fn(A, B, ...) -> Ret | |
25 | extern "C" fn(A, B, C) -> Ret | |
26 | extern "C" fn(A, B, C, ...) -> Ret | |
27 | extern "C" fn(A, B, C, D) -> Ret | |
28 | and 68 others | |
17df50a5 | 29 | = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) |
fc512014 XL |
30 | |
31 | error: aborting due to 2 previous errors | |
32 | ||
33 | Some errors have detailed explanations: E0277, E0369. | |
34 | For more information about an error, try `rustc --explain E0277`. |