Merge pull request #376 from delta549/issue_375

Added proposed change to variables shadowing problem 6
This commit is contained in:
Sunface 2023-03-09 09:22:54 +08:00 committed by GitHub
commit d86e8de385
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;