1 use std::ops::AddAssign;
5 impl AddAssign for Int {
6 fn add_assign(&mut self, _: Int) {
14 //~^ NOTE borrow of `x` occurs here
17 //~^ ERROR cannot move out of `x` because it is borrowed
18 //~| move out of `x` occurs here
21 //~^ HELP consider changing this to be mutable
23 y //~ ERROR cannot borrow `y` as mutable, as it is not declared as mutable
24 //~| cannot borrow as mutable