about summary refs log tree commit diff
path: root/tests/ui/issues/issue-37510.rs
blob: 62a90c5604bd975058668dd172c10b0c166df5db (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) {

    }
}