summaryrefslogtreecommitdiff
path: root/tests/ui/span/borrowck-call-is-borrow-issue-12224.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/span/borrowck-call-is-borrow-issue-12224.stderr')
-rw-r--r--tests/ui/span/borrowck-call-is-borrow-issue-12224.stderr6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/span/borrowck-call-is-borrow-issue-12224.stderr b/tests/ui/span/borrowck-call-is-borrow-issue-12224.stderr
index 9711dad8078..99c8fa1f932 100644
--- a/tests/ui/span/borrowck-call-is-borrow-issue-12224.stderr
+++ b/tests/ui/span/borrowck-call-is-borrow-issue-12224.stderr
@@ -19,7 +19,7 @@ LL | (*f)();
help: consider changing this to be a mutable reference
|
LL | fn test2<F>(f: &mut F) where F: FnMut() {
- | ~~~~~~
+ | +++
error[E0596]: cannot borrow `f.f` as mutable, as it is behind a `&` reference
--> $DIR/borrowck-call-is-borrow-issue-12224.rs:34:5
@@ -29,8 +29,8 @@ LL | f.f.call_mut(())
|
help: consider changing this to be a mutable reference
|
-LL | fn test4(f: &mut Test<'_>) {
- | ~~~~~~~~~~~~~
+LL | fn test4(f: &mut Test) {
+ | +++
error[E0507]: cannot move out of `f`, a captured variable in an `FnMut` closure
--> $DIR/borrowck-call-is-borrow-issue-12224.rs:57:13