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

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