]> git.proxmox.com Git - rustc.git/blame - tests/mir-opt/building/issue_49232.rs
New upstream version 1.75.0+dfsg1
[rustc.git] / tests / mir-opt / building / issue_49232.rs
CommitLineData
ed00b5ec 1// skip-filecheck
8faf50e0
XL
2// We must mark a variable whose initialization fails due to an
3// abort statement as StorageDead.
4
487cf647 5// EMIT_MIR issue_49232.main.built.after.mir
8faf50e0
XL
6fn main() {
7 loop {
8 let beacon = {
9 match true {
10 false => 4,
11 true => break,
12 }
13 };
14 drop(&beacon);
15 }
16}