2023-10-16 12:36:39 -05:00
|
|
|
// skip-filecheck
|
2024-04-20 06:19:34 -05:00
|
|
|
//@ test-mir-pass: Derefer
|
2022-04-04 10:51:32 -05:00
|
|
|
// EMIT_MIR derefer_test.main.Derefer.diff
|
|
|
|
fn main() {
|
2024-06-02 19:18:33 -05:00
|
|
|
let mut a = (42, 43);
|
2022-04-04 10:51:32 -05:00
|
|
|
let mut b = (99, &mut a);
|
|
|
|
let x = &mut (*b.1).0;
|
|
|
|
let y = &mut (*b.1).1;
|
|
|
|
}
|