rust/tests/mir-opt/building/issue_49232.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
331 B
Rust
Raw Normal View History

// 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);
}
}