]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/const_prop/mutable_variable.rs
Rollup merge of #107770 - notriddle:notriddle/br2nl, r=GuillaumeGomez
[rust.git] / tests / mir-opt / const_prop / mutable_variable.rs
1 // unit-test
2 // compile-flags: -O
3
4 // EMIT_MIR mutable_variable.main.ConstProp.diff
5 fn main() {
6     let mut x = 42;
7     x = 99;
8     let y = x;
9 }