]> git.proxmox.com Git - rustc.git/blob - src/test/ui/binop/issue-77910-1.rs
New upstream version 1.50.0+dfsg1
[rustc.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<'r> fn(&'r i32) -> &'r i32 {foo}` doesn't implement `Debug`
11 }