]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/const_prop/mutable_variable_aggregate_mut_ref.rs
Rollup merge of #107770 - notriddle:notriddle/br2nl, r=GuillaumeGomez
[rust.git] / tests / mir-opt / const_prop / mutable_variable_aggregate_mut_ref.rs
1 // unit-test
2 // compile-flags: -O
3
4 // EMIT_MIR mutable_variable_aggregate_mut_ref.main.ConstProp.diff
5 fn main() {
6     let mut x = (42, 43);
7     let z = &mut x;
8     z.1 = 99;
9     let y = x;
10 }