blob: 465e6809957041761e407b4ddb0315a1c0b5fd54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// compile-pass
// skip-codegen
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) {
}
}
|