summaryrefslogtreecommitdiffstats
path: root/src/test/ui/binop/issue-77910-2.rs
blob: 2bb48d3657617df7f6fee9e21aed428d8f69f541 (plain)
1
2
3
4
5
6
7
8
9
fn foo(s: &i32) -> &i32 {
    let xs;
    xs
}
fn main() {
    let y;
    if foo == y {}
    //~^ ERROR binary operation `==` cannot be applied to type
}