summaryrefslogtreecommitdiffstats
path: root/tests/ui/span/mut-ptr-cant-outlive-ref.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/span/mut-ptr-cant-outlive-ref.stderr')
-rw-r--r--tests/ui/span/mut-ptr-cant-outlive-ref.stderr2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/span/mut-ptr-cant-outlive-ref.stderr b/tests/ui/span/mut-ptr-cant-outlive-ref.stderr
index 4d976a7bb..be56f9489 100644
--- a/tests/ui/span/mut-ptr-cant-outlive-ref.stderr
+++ b/tests/ui/span/mut-ptr-cant-outlive-ref.stderr
@@ -1,6 +1,8 @@
error[E0597]: `b` does not live long enough
--> $DIR/mut-ptr-cant-outlive-ref.rs:8:15
|
+LL | let b = m.borrow();
+ | - binding `b` declared here
LL | p = &*b;
| ^ borrowed value does not live long enough
LL | }