2023-10-16 12:36:39 -05:00
|
|
|
// skip-filecheck
|
2018-07-03 20:09:00 -05:00
|
|
|
// We must mark a variable whose initialization fails due to an
|
|
|
|
// abort statement as StorageDead.
|
|
|
|
|
2022-09-04 22:00:31 -05:00
|
|
|
// EMIT_MIR issue_49232.main.built.after.mir
|
2018-07-03 20:09:00 -05:00
|
|
|
fn main() {
|
|
|
|
loop {
|
|
|
|
let beacon = {
|
|
|
|
match true {
|
|
|
|
false => 4,
|
|
|
|
true => break,
|
|
|
|
}
|
|
|
|
};
|
|
|
|
drop(&beacon);
|
|
|
|
}
|
|
|
|
}
|