about summary refs log tree commit diff
path: root/tests/ui/nll/issue-54382-use-span-of-tail-of-block.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/nll/issue-54382-use-span-of-tail-of-block.stderr')
-rw-r--r--tests/ui/nll/issue-54382-use-span-of-tail-of-block.stderr3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/nll/issue-54382-use-span-of-tail-of-block.stderr b/tests/ui/nll/issue-54382-use-span-of-tail-of-block.stderr
index d8f43cbc92a..4a32c777a86 100644
--- a/tests/ui/nll/issue-54382-use-span-of-tail-of-block.stderr
+++ b/tests/ui/nll/issue-54382-use-span-of-tail-of-block.stderr
@@ -1,6 +1,9 @@
 error[E0597]: `_thing1` does not live long enough
   --> $DIR/issue-54382-use-span-of-tail-of-block.rs:7:29
    |
+LL |         let mut _thing1 = D(Box::new("thing1"));
+   |             ----------- binding `_thing1` declared here
+...
 LL |             D("other").next(&_thing1)
    |             ----------------^^^^^^^^-
    |             |               |