Merge pull request #376 from delta549/issue_375
Added proposed change to variables shadowing problem 6
This commit is contained in:
commit
d86e8de385
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue