]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/derefer_test.rs
Add #[const_trait] where needed in tests.
[rust.git] / src / test / 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 }