summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/maybe-initialized-drop-with-fragment.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/nll/maybe-initialized-drop-with-fragment.stderr')
-rw-r--r--tests/ui/nll/maybe-initialized-drop-with-fragment.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/nll/maybe-initialized-drop-with-fragment.stderr b/tests/ui/nll/maybe-initialized-drop-with-fragment.stderr
index 14074472e..c89f94a78 100644
--- a/tests/ui/nll/maybe-initialized-drop-with-fragment.stderr
+++ b/tests/ui/nll/maybe-initialized-drop-with-fragment.stderr
@@ -2,10 +2,10 @@ error[E0506]: cannot assign to `x` because it is borrowed
--> $DIR/maybe-initialized-drop-with-fragment.rs:19:5
|
LL | let wrap = Wrap { p: &mut 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 | }
| - borrow might be used here, when `foo` is dropped and runs the destructor for type `Foo<'_>`