mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
15 lines
287 B
Rust
15 lines
287 B
Rust
// EMIT_MIR while_let_loops.change_loop_body.ConstProp.diff
|
|
// EMIT_MIR while_let_loops.change_loop_body.PreCodegen.after.mir
|
|
|
|
pub fn change_loop_body() {
|
|
let mut _x = 0;
|
|
while let Some(0u32) = None {
|
|
_x = 1;
|
|
break;
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
change_loop_body();
|
|
}
|