summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/building/issue_49232.rs
blob: 7e9f0de81f749808ee3b8efff39fc873266857d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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);
    }
}