]> git.proxmox.com Git - rustc.git/blob - src/test/ui/binop/issue-77910-1.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / binop / issue-77910-1.stderr
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);
5 | ^^^^^^^^^^^^^^^^^^^
6 | |
7 | for<'r> fn(&'r i32) -> &'r i32 {foo}
8 | _
9 |
10 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
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);
16 | ^^^^^^^^^^^^^^^^^^^ `for<'r> fn(&'r i32) -> &'r i32 {foo}` cannot be formatted using `{:?}` because it doesn't implement `Debug`
17 |
18 ::: $SRC_DIR/core/src/panicking.rs:LL:COL
19 |
20 LL | T: fmt::Debug + ?Sized,
21 | ---------- required by this bound in `core::panicking::assert_failed`
22 |
23 = help: the trait `Debug` is not implemented for `for<'r> fn(&'r i32) -> &'r i32 {foo}`
24 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
25
26 error: aborting due to 2 previous errors
27
28 Some errors have detailed explanations: E0277, E0369.
29 For more information about an error, try `rustc --explain E0277`.