summaryrefslogtreecommitdiffstats
path: root/tests/ui/borrowck/issue-52713-bug.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/borrowck/issue-52713-bug.stderr')
-rw-r--r--tests/ui/borrowck/issue-52713-bug.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/borrowck/issue-52713-bug.stderr b/tests/ui/borrowck/issue-52713-bug.stderr
index 4abb6fb2c..3f7715645 100644
--- a/tests/ui/borrowck/issue-52713-bug.stderr
+++ b/tests/ui/borrowck/issue-52713-bug.stderr
@@ -2,10 +2,10 @@ error[E0506]: cannot assign to `x` because it is borrowed
--> $DIR/issue-52713-bug.rs:12:5
|
LL | let y = &x;
- | -- borrow of `x` occurs here
+ | -- `x` is borrowed here
...
LL | x += 1;
- | ^^^^^^ assignment to borrowed `x` occurs here
+ | ^^^^^^ `x` is assigned to here but it was already borrowed
LL | println!("{}", y);
| - borrow later used here