summary refs log tree commit diff
path: root/tests/mir-opt/const_prop/mutable_variable.rs
blob: 175d63d46f5a3b82e3c5341fd53de49c6b8723be (plain)
1
2
3
4
5
6
7
8
9
// skip-filecheck
// unit-test: ConstProp

// EMIT_MIR mutable_variable.main.ConstProp.diff
fn main() {
    let mut x = 42;
    x = 99;
    let y = x;
}