rust/tests/mir-opt/derefer_test.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
188 B
Rust
Raw Normal View History

// unit-test: Derefer
2022-04-04 15:51:32 +00:00
// 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;
}