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