summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/derefer_test.rs
blob: fad0fe8eb6fc315bd57a8c577ad59105f30b13bd (plain)
1
2
3
4
5
6
7
8
// unit-test: Derefer
// 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;
}