]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binop/issue-77910-1.stderr
Rollup merge of #102227 - devnexen:solarish_get_path, r=m-ou-se
[rust.git] / src / test / ui / binop / issue-77910-1.stderr
1 error[E0369]: binary operation `==` cannot be applied to type `for<'a> fn(&'a i32) -> &'a i32 {foo}`
2   --> $DIR/issue-77910-1.rs:8:5
3    |
4 LL |     assert_eq!(foo, y);
5    |     ^^^^^^^^^^^^^^^^^^
6    |     |
7    |     for<'a> fn(&'a i32) -> &'a i32 {foo}
8    |     _
9    |
10    = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
11
12 error[E0277]: `for<'a> fn(&'a i32) -> &'a i32 {foo}` doesn't implement `Debug`
13   --> $DIR/issue-77910-1.rs:8:5
14    |
15 LL | fn foo(s: &i32) -> &i32 {
16    |    --- consider calling this function
17 ...
18 LL |     assert_eq!(foo, y);
19    |     ^^^^^^^^^^^^^^^^^^ `for<'a> fn(&'a i32) -> &'a i32 {foo}` cannot be formatted using `{:?}` because it doesn't implement `Debug`
20    |
21    = help: the trait `Debug` is not implemented for fn item `for<'a> fn(&'a i32) -> &'a i32 {foo}`
22    = help: use parentheses to call the function: `foo(s)`
23    = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
24
25 error: aborting due to 2 previous errors
26
27 Some errors have detailed explanations: E0277, E0369.
28 For more information about an error, try `rustc --explain E0277`.