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