]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/while_let_loops.rs
Rollup merge of #99110 - audunhalland:match_has_guard_from_candidate, r=pnkfelix
[rust.git] / src / test / 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 // EMIT_MIR_FOR_EACH_BIT_WIDTH
4
5 pub fn change_loop_body() {
6     let mut _x = 0;
7     while let Some(0u32) = None {
8         _x = 1;
9         break;
10     }
11 }
12
13 fn main() {
14     change_loop_body();
15 }