summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/issue-55511.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/nll/issue-55511.stderr')
-rw-r--r--tests/ui/nll/issue-55511.stderr2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/nll/issue-55511.stderr b/tests/ui/nll/issue-55511.stderr
index bf3e58e8c..ecb9ef0ae 100644
--- a/tests/ui/nll/issue-55511.stderr
+++ b/tests/ui/nll/issue-55511.stderr
@@ -1,6 +1,8 @@
error[E0597]: `a` does not live long enough
--> $DIR/issue-55511.rs:13:28
|
+LL | let a = 22;
+ | - binding `a` declared here
LL | let b = Some(Cell::new(&a));
| ^^ borrowed value does not live long enough
...