RBE variable bindings mutability

This commit is contained in:
Dan Buch 2021-09-29 11:38:53 -04:00
parent eac3c2d8a6
commit d2563484f9
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7

View File

@ -0,0 +1,12 @@
fn main() {
let _immutable_binding = 1;
let mut mutable_binding = 1;
println!("Before mutation: {}", mutable_binding);
mutable_binding += 1;
println!("After mutation: {}", mutable_binding);
// _immutable_binding += 1;
}