]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binop/issue-77910-1.rs
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / binop / issue-77910-1.rs
1 fn foo(s: &i32) -> &i32 {
2     let xs;
3     xs
4 }
5 fn main() {
6     let y;
7     // we shouldn't ice with the bound var here.
8     assert_eq!(foo, y);
9     //~^ ERROR binary operation `==` cannot be applied to type
10     //~| ERROR `for<'a> fn(&'a i32) -> &'a i32 {foo}` doesn't implement `Debug`
11 }