]> git.proxmox.com Git - rustc.git/blame - src/test/ui/binop/issue-77910-1.stderr
New upstream version 1.56.0+dfsg1
[rustc.git] / src / test / ui / binop / issue-77910-1.stderr
CommitLineData
fc512014
XL
1error[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 |
4LL | assert_eq!(foo, y);
5 | ^^^^^^^^^^^^^^^^^^^
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
12error[E0277]: `for<'r> fn(&'r i32) -> &'r i32 {foo}` doesn't implement `Debug`
13 --> $DIR/issue-77910-1.rs:8:5
14 |
15LL | 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 = help: the trait `Debug` is not implemented for `for<'r> fn(&'r i32) -> &'r i32 {foo}`
17df50a5 19 = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
fc512014
XL
20
21error: aborting due to 2 previous errors
22
23Some errors have detailed explanations: E0277, E0369.
24For more information about an error, try `rustc --explain E0277`.