]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/derefer_test.rs
Rollup merge of #106638 - RalfJung:realstd, r=thomcc
[rust.git] / tests / mir-opt / derefer_test.rs
1 // unit-test: Derefer
2 // EMIT_MIR derefer_test.main.Derefer.diff
3 fn main() {
4     let mut a = (42,43);
5     let mut b = (99, &mut a);
6     let x = &mut (*b.1).0;
7     let y = &mut (*b.1).1;
8 }