2022-04-13 04:20:46 -05:00
|
|
|
// unit-test: EarlyOtherwiseBranch
|
2020-08-01 18:47:52 -05:00
|
|
|
|
|
|
|
// EMIT_MIR early_otherwise_branch_3_element_tuple.opt1.EarlyOtherwiseBranch.diff
|
2020-09-19 16:38:54 -05:00
|
|
|
fn opt1(x: Option<u32>, y: Option<u32>, z: Option<u32>) -> u32 {
|
|
|
|
match (x, y, z) {
|
2020-08-01 18:47:52 -05:00
|
|
|
(Some(a), Some(b), Some(c)) => 0,
|
2020-09-19 16:38:54 -05:00
|
|
|
_ => 1,
|
2020-08-01 18:47:52 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
opt1(None, Some(0), None);
|
|
|
|
}
|