]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/derefer_test_multiple.rs
Do not eagerly recover for bad impl-trait in macros
[rust.git] / tests / 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 }