fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0505]: cannot move out of `x` because it is borrowed 2 --> $DIR/augmented-assignments.rs:16:5 3 | 4LL | let mut x = Int(1); 5 | ----- binding `x` declared here 6LL | x 7 | - borrow of `x` occurs here 8... 9LL | x; 10 | ^ move out of `x` occurs here 11 12error[E0596]: cannot borrow `y` as mutable, as it is not declared as mutable 13 --> $DIR/augmented-assignments.rs:23:5 14 | 15LL | y 16 | ^ cannot borrow as mutable 17 | 18help: consider changing this to be mutable 19 | 20LL | let mut y = Int(2); 21 | +++ 22 23error: aborting due to 2 previous errors 24 25Some errors have detailed explanations: E0505, E0596. 26For more information about an error, try `rustc --explain E0505`.