1 error[E0596]: cannot borrow `arg` as mutable, as it is not declared as mutable
2 --> $DIR/borrowck-argument.rs:10:5
5 | --- help: consider changing this to be mutable: `mut arg`
7 | ^^^^^^^^^^^^ cannot borrow as mutable
9 error[E0596]: cannot borrow `arg` as mutable, as it is not declared as mutable
10 --> $DIR/borrowck-argument.rs:15:9
12 LL | fn method(&self, arg: S) {
13 | --- help: consider changing this to be mutable: `mut arg`
15 | ^^^^^^^^^^^^ cannot borrow as mutable
17 error[E0596]: cannot borrow `arg` as mutable, as it is not declared as mutable
18 --> $DIR/borrowck-argument.rs:21:9
20 LL | fn default(&self, arg: S) {
21 | --- help: consider changing this to be mutable: `mut arg`
23 | ^^^^^^^^^^^^ cannot borrow as mutable
25 error[E0596]: cannot borrow `arg` as mutable, as it is not declared as mutable
26 --> $DIR/borrowck-argument.rs:32:17
28 LL | (|arg: S| { arg.mutate() })(s);
29 | --- ^^^^^^^^^^^^ cannot borrow as mutable
31 | help: consider changing this to be mutable: `mut arg`
33 error: aborting due to 4 previous errors
35 For more information about this error, try `rustc --explain E0596`.