mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
10 lines
213 B
Rust
10 lines
213 B
Rust
//@ skip-filecheck
|
|
//@ test-mir-pass: Derefer
|
|
// EMIT_MIR derefer_test.main.Derefer.diff
|
|
fn main() {
|
|
let mut a = (42, 43);
|
|
let mut b = (99, &mut a);
|
|
let x = &mut (*b.1).0;
|
|
let y = &mut (*b.1).1;
|
|
}
|