Files
rust/tests/mir-opt/building/issue_49232.rs
T
2025-08-26 23:42:38 -04:00

18 lines
386 B
Rust

//@ compile-flags: -Zmir-opt-level=0
// skip-filecheck
// We must mark a variable whose initialization fails due to an
// abort statement as StorageDead.
// EMIT_MIR issue_49232.main.built.after.mir
fn main() {
loop {
let beacon = {
match true {
false => 4,
true => break,
}
};
drop(&beacon);
}
}