Added proposed change to variables shadowing problem 6

This commit is contained in:
delta549 2023-03-04 13:38:02 +00:00
parent 0d14bb3d1b
commit 0d7d44258e
1 changed files with 1 additions and 2 deletions

View File

@ -83,8 +83,7 @@ fn main() {
let mut x: i32 = 1;
x = 7;
// Shadowing and re-binding
let mut x = x;
x += 3;
let x = x;
let y = 4;