]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/early_otherwise_branch_3_element_tuple.rs
Rollup merge of #107719 - WaffleLapkin:de-arena-allocates-you-UwU, r=cjgillot
[rust.git] / tests / mir-opt / early_otherwise_branch_3_element_tuple.rs
1 // unit-test: EarlyOtherwiseBranch
2
3 // EMIT_MIR early_otherwise_branch_3_element_tuple.opt1.EarlyOtherwiseBranch.diff
4 fn opt1(x: Option<u32>, y: Option<u32>, z: Option<u32>) -> u32 {
5     match (x, y, z) {
6         (Some(a), Some(b), Some(c)) => 0,
7         _ => 1,
8     }
9 }
10
11 fn main() {
12     opt1(None, Some(0), None);
13 }