]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/while_let_loops.rs
Rollup merge of #107465 - WaffleLapkin:has_allow_dead_code_or_lang_attr, r=Nilstrieb
[rust.git] / tests / mir-opt / while_let_loops.rs
1 // EMIT_MIR while_let_loops.change_loop_body.ConstProp.diff
2 // EMIT_MIR while_let_loops.change_loop_body.PreCodegen.after.mir
3
4 pub fn change_loop_body() {
5     let mut _x = 0;
6     while let Some(0u32) = None {
7         _x = 1;
8         break;
9     }
10 }
11
12 fn main() {
13     change_loop_body();
14 }