summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-37510.rs
blob: 2081c9f7e26ec0940d52bafc6a9a2b0e5e782951 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// check-pass

fn foo(_: &mut i32) -> bool { true }

fn main() {
    let opt = Some(92);
    let mut x = 62;

    if let Some(_) = opt {

    } else if foo(&mut x) {

    }
}