mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
9 lines
188 B
Rust
9 lines
188 B
Rust
// unit-test: 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;
|
|
}
|