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

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