summaryrefslogtreecommitdiffstats
path: root/tests/ui/borrowck/issue-58776-borrowck-scans-children.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/borrowck/issue-58776-borrowck-scans-children.stderr')
-rw-r--r--tests/ui/borrowck/issue-58776-borrowck-scans-children.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/borrowck/issue-58776-borrowck-scans-children.stderr b/tests/ui/borrowck/issue-58776-borrowck-scans-children.stderr
index 57803247b..0870b4237 100644
--- a/tests/ui/borrowck/issue-58776-borrowck-scans-children.stderr
+++ b/tests/ui/borrowck/issue-58776-borrowck-scans-children.stderr
@@ -4,10 +4,10 @@ error[E0506]: cannot assign to `greeting` because it is borrowed
LL | let res = (|| (|| &greeting)())();
| -- -------- borrow occurs due to use in closure
| |
- | borrow of `greeting` occurs here
+ | `greeting` is borrowed here
LL |
LL | greeting = "DEALLOCATED".to_string();
- | ^^^^^^^^ assignment to borrowed `greeting` occurs here
+ | ^^^^^^^^ `greeting` is assigned to here but it was already borrowed
...
LL | println!("thread result: {:?}", res);
| --- borrow later used here