mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
16 lines
464 B
Rust
16 lines
464 B
Rust
// Verify that we account for the `PlaceMention` statement as a use of the tuple,
|
|
// and don't remove it as a dead store.
|
|
//
|
|
// unit-test: DeadStoreElimination-initial
|
|
// compile-flags: -Zmir-keep-place-mention
|
|
|
|
// EMIT_MIR place_mention.main.DeadStoreElimination-initial.diff
|
|
fn main() {
|
|
// CHECK-LABEL: fn main(
|
|
// CHECK-NOT: PlaceMention(
|
|
// CHECK: [[tmp:_.*]] =
|
|
// CHECK-NEXT: PlaceMention([[tmp:_.*]]);
|
|
|
|
let (_, _) = ("Hello", "World");
|
|
}
|