4 fn bar(self: &mut Self) {
5 //~^ WARN function cannot return without recursing
6 //~^^ HELP a `loop` may express intention better if this is on purpose
8 //~^ ERROR cannot borrow `self` as mutable, as it is not declared as mutable [E0596]
9 //~^^ HELP try removing `&mut` here
12 fn imm(self) { //~ HELP consider changing this to be mutable
14 //~^ ERROR cannot borrow `self` as mutable, as it is not declared as mutable [E0596]
23 //~^ ERROR cannot borrow `self` as mutable, as it is not declared as mutable [E0596]
24 //~^^ ERROR cannot borrow data in a `&` reference as mutable [E0596]
27 fn mtblref(&mut self) {
29 //~^ ERROR cannot borrow `self` as mutable, as it is not declared as mutable [E0596]
30 //~^^ HELP try removing `&mut` here