rust/tests/mir-opt/const_prop/while_let_loops.rs
2023-10-19 15:51:52 +00:00

16 lines
263 B
Rust

// skip-filecheck
// unit-test: ConstProp
// EMIT_MIR while_let_loops.change_loop_body.ConstProp.diff
pub fn change_loop_body() {
let mut _x = 0;
while let Some(0u32) = None {
_x = 1;
break;
}
}
fn main() {
change_loop_body();
}