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