1error[E0596]: cannot borrow `arg` as mutable, as it is not declared as mutable 2 --> $DIR/mut-suggestion.rs:12:5 3 | 4LL | fn func(arg: S) { 5 | --- help: consider changing this to be mutable: `mut arg` 6... 7LL | arg.mutate(); 8 | ^^^^^^^^^^^^ cannot borrow as mutable 9 10error[E0596]: cannot borrow `local` as mutable, as it is not declared as mutable 11 --> $DIR/mut-suggestion.rs:20:5 12 | 13LL | let local = S; 14 | ----- help: consider changing this to be mutable: `mut local` 15... 16LL | local.mutate(); 17 | ^^^^^^^^^^^^^^ cannot borrow as mutable 18 19error: aborting due to 2 previous errors 20 21For more information about this error, try `rustc --explain E0596`. 22