summaryrefslogtreecommitdiffstats
path: root/tests/ui/borrowck/borrowck-insert-during-each.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/borrowck/borrowck-insert-during-each.stderr')
-rw-r--r--tests/ui/borrowck/borrowck-insert-during-each.stderr20
1 files changed, 9 insertions, 11 deletions
diff --git a/tests/ui/borrowck/borrowck-insert-during-each.stderr b/tests/ui/borrowck/borrowck-insert-during-each.stderr
index 99d08e905..a1ac45795 100644
--- a/tests/ui/borrowck/borrowck-insert-during-each.stderr
+++ b/tests/ui/borrowck/borrowck-insert-during-each.stderr
@@ -16,17 +16,15 @@ LL | | })
error[E0500]: closure requires unique access to `f` but it is already borrowed
--> $DIR/borrowck-insert-during-each.rs:18:9
|
-LL | f.foo(
- | - --- first borrow later used by call
- | _____|
- | |
-LL | |
-LL | | |a| {
- | | ^^^ closure construction occurs here
-LL | | f.n.insert(*a);
- | | --- second borrow occurs due to use of `f` in closure
-LL | | })
- | |__________- borrow occurs here
+LL | f.foo(
+ | - --- first borrow later used by call
+ | |
+ | borrow occurs here
+LL |
+LL | |a| {
+ | ^^^ closure construction occurs here
+LL | f.n.insert(*a);
+ | --- second borrow occurs due to use of `f` in closure
error: aborting due to 2 previous errors