1 error[E0505]: cannot move out of `x` because it is borrowed
2 --> $DIR/augmented-assignments.rs:16:5
5 | - borrow of `x` occurs here
8 | ^ move out of `x` occurs here
10 error[E0596]: cannot borrow `y` as mutable, as it is not declared as mutable
11 --> $DIR/augmented-assignments.rs:23:5
14 | - help: consider changing this to be mutable: `mut y`
17 | ^ cannot borrow as mutable
19 error: aborting due to 2 previous errors
21 Some errors have detailed explanations: E0505, E0596.
22 For more information about an error, try `rustc --explain E0505`.