mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 04:29:41 +00:00
Merge pull request #376 from delta549/issue_375
Added proposed change to variables shadowing problem 6
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user