box-o-sand/rustbyexample/variable_bindings/freeze.rs

12 lines
175 B
Rust

fn main() {
let mut _mutable_integer = 7i32;
{
let _mutable_integer = _mutable_integer;
// _mutable_integer = 50;
}
_mutable_integer = 3;
}