Skip to content

Commit 3bdcbbf

Browse files
committed
Update some error messages that have changed
1 parent ffdcb7f commit 3bdcbbf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test-project/tests/compile-fail/mut-suggestion.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ impl S {
1717
}
1818

1919
fn func(arg: S) {
20-
//~^ HELP make this binding mutable
21-
arg.mutate(); //~ ERROR cannot borrow immutable argument
22-
//~| NOTE cannot borrow mutably
20+
//~^ HELP consider changing this to be mutable
21+
arg.mutate(); //~ ERROR cannot borrow `arg` as mutable
22+
//~| NOTE cannot borrow as mutable
2323
}
2424

2525
fn main() {
2626
let local = S;
27-
//~^ HELP make this binding mutable
28-
local.mutate(); //~ ERROR cannot borrow immutable local variable
29-
//~| NOTE cannot borrow mutably
27+
//~^ HELP consider changing this to be mutable
28+
local.mutate(); //~ ERROR cannot borrow `local` as mutable
29+
//~| NOTE cannot borrow as mutable
3030
}

0 commit comments

Comments
 (0)