]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/derefer_test_multiple.rs
Rollup merge of #100382 - jackh726:gat-self-outlives-input, r=compiler-errors
[rust.git] / src / test / mir-opt / derefer_test_multiple.rs
1 // unit-test: Derefer
2 // EMIT_MIR derefer_test_multiple.main.Derefer.diff
3 fn main () {
4     let mut a = (42, 43);
5     let mut b = (99, &mut a);
6     let mut c = (11, &mut b);
7     let mut d = (13, &mut c);
8     let x = &mut (*d.1).1.1.1;
9     let y = &mut (*d.1).1.1.1;
10 }