summaryrefslogtreecommitdiffstats
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.stderr3
1 files changed, 3 insertions, 0 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 48b42bc78..9711dad80 100644
--- a/tests/ui/span/borrowck-call-is-borrow-issue-12224.stderr
+++ b/tests/ui/span/borrowck-call-is-borrow-issue-12224.stderr
@@ -47,6 +47,9 @@ LL | foo(f);
error[E0505]: cannot move out of `f` because it is borrowed
--> $DIR/borrowck-call-is-borrow-issue-12224.rs:55:16
|
+LL | let mut f = move |g: Box<dyn FnMut(isize)>, b: isize| {
+ | ----- binding `f` declared here
+...
LL | f(Box::new(|a| {
| - ^^^ move out of `f` occurs here
| |