]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_goto_storage.rs
Rollup merge of #96609 - ibraheemdev:arc-downcast-unchecked, r=m-ou-se
[rust.git] / src / test / mir-opt / const_goto_storage.rs
1 // EMIT_MIR const_goto_storage.match_nested_if.ConstGoto.diff
2 fn match_nested_if() -> bool {
3     let val = match () {
4         () if if if if true { true } else { false } { true } else { false } {
5             true
6         } else {
7             false
8         } =>
9             {
10                 true
11             }
12         _ => false,
13     };
14     val
15 }
16
17 fn main() {
18     let _ = match_nested_if();
19 }