rust/src/test/mir-opt/issue-49232.rs

16 lines
323 B
Rust
Raw Normal View History

// We must mark a variable whose initialization fails due to an
// abort statement as StorageDead.
2020-04-02 21:09:01 +00:00
// EMIT_MIR rustc.main.mir_map.0.mir
fn main() {
loop {
let beacon = {
match true {
false => 4,
true => break,
}
};
drop(&beacon);
}
}