summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/const_prop/mutable_variable_aggregate.rs
blob: a145c0354380c773032a03caf62737afed2818d2 (plain)
1
2
3
4
5
6
7
8
// unit-test: ConstProp

// EMIT_MIR mutable_variable_aggregate.main.ConstProp.diff
fn main() {
    let mut x = (42, 43);
    x.1 = 99;
    let y = x;
}