mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
17 lines
349 B
Rust
17 lines
349 B
Rust
// skip-filecheck
|
|
// 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);
|
|
}
|
|
}
|