about summary refs log tree commit diff
path: root/tests/ui/binop/issue-77910-2.rs
blob: 5ea03e82b2fe930f59887970861b9ccc0716df28 (plain)
1
2
3
4
5
6
7
8
9
fn foo(s: &i32) -> &i32 {
    let xs;
    xs //~ ERROR: isn't initialized
}
fn main() {
    let y;
    if foo == y {}
    //~^ ERROR binary operation `==` cannot be applied to type
}