summaryrefslogtreecommitdiffstats
path: root/tests/ui/regions/regions-pattern-typing-issue-19997.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/regions/regions-pattern-typing-issue-19997.stderr')
-rw-r--r--tests/ui/regions/regions-pattern-typing-issue-19997.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/regions/regions-pattern-typing-issue-19997.stderr b/tests/ui/regions/regions-pattern-typing-issue-19997.stderr
index ae60e3c0d..0abe77a86 100644
--- a/tests/ui/regions/regions-pattern-typing-issue-19997.stderr
+++ b/tests/ui/regions/regions-pattern-typing-issue-19997.stderr
@@ -2,10 +2,10 @@ error[E0506]: cannot assign to `a1` because it is borrowed
--> $DIR/regions-pattern-typing-issue-19997.rs:7:13
|
LL | match (&a1,) {
- | --- borrow of `a1` occurs here
+ | --- `a1` is borrowed here
LL | (&ref b0,) => {
LL | a1 = &f;
- | ^^^^^^^ assignment to borrowed `a1` occurs here
+ | ^^^^^^^ `a1` is assigned to here but it was already borrowed
LL | drop(b0);
| -- borrow later used here