summaryrefslogtreecommitdiffstats
path: root/src/test/mir-opt/const_prop/mutable_variable.rs
blob: 801e7a9fcbb7b48fbf3c5d0b9bc0f5437ea4b176 (plain)
1
2
3
4
5
6
7
8
// compile-flags: -O

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