diff options
Diffstat (limited to '')
-rw-r--r-- | tests/ui/nll/issue-51191.stderr (renamed from src/test/ui/nll/issue-51191.stderr) | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/ui/nll/issue-51191.stderr b/tests/ui/nll/issue-51191.stderr index 63ca6ae5c..27b1f8705 100644 --- a/src/test/ui/nll/issue-51191.stderr +++ b/tests/ui/nll/issue-51191.stderr @@ -30,10 +30,13 @@ LL | (&mut self).bar(); error[E0596]: cannot borrow `self` as mutable, as it is not declared as mutable --> $DIR/issue-51191.rs:13:9 | -LL | fn imm(self) { - | ---- help: consider changing this to be mutable: `mut self` LL | (&mut self).bar(); | ^^^^^^^^^^^ cannot borrow as mutable + | +help: consider changing this to be mutable + | +LL | fn imm(mut self) { + | +++ error[E0596]: cannot borrow `self` as mutable, as it is not declared as mutable --> $DIR/issue-51191.rs:22:9 |