summaryrefslogtreecommitdiffstats
path: root/tests/ui/inference/issue-103587.rs
blob: 11536f9f4cc485499e86f226ab92dab72599b6ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
fn main() {
    let x = Some(123);

    if let Some(_) == x {}
    //~^ ERROR expected `=`, found `==`

    if Some(_) = x {}
    //~^ ERROR mismatched types

    if None = x { }
    //~^ ERROR mismatched types
}