summaryrefslogtreecommitdiffstats
path: root/tests/ui/mut/mut-suggestion.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/mut/mut-suggestion.rs (renamed from src/test/ui/mut/mut-suggestion.rs)4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/mut/mut-suggestion.rs b/tests/ui/mut/mut-suggestion.rs
index 3104b20ac..8c269d1e7 100644
--- a/src/test/ui/mut/mut-suggestion.rs
+++ b/tests/ui/mut/mut-suggestion.rs
@@ -8,7 +8,7 @@ impl S {
fn func(arg: S) {
//~^ HELP consider changing this to be mutable
- //~| SUGGESTION mut arg
+ //~| SUGGESTION mut
arg.mutate();
//~^ ERROR cannot borrow `arg` as mutable, as it is not declared as mutable
}
@@ -16,7 +16,7 @@ fn func(arg: S) {
fn main() {
let local = S;
//~^ HELP consider changing this to be mutable
- //~| SUGGESTION mut local
+ //~| SUGGESTION mut
local.mutate();
//~^ ERROR cannot borrow `local` as mutable, as it is not declared as mutable
}