]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/nll/do-not-ignore-lifetime-bounds-in-copy-proj.stderr
Rollup merge of #106856 - vadorovsky:fix-atomic-annotations, r=joshtriplett
[rust.git] / tests / ui / nll / do-not-ignore-lifetime-bounds-in-copy-proj.stderr
index 65be3b37e0e3bed31239ba5bc20258d2b006527a..862c925b468fd3a5e12da81bb73881dda35a6407 100644 (file)
@@ -1,6 +1,8 @@
 error[E0597]: `s` does not live long enough
   --> $DIR/do-not-ignore-lifetime-bounds-in-copy-proj.rs:9:18
    |
+LL |     let s = 2;
+   |         - binding `s` declared here
 LL |     let a = (Foo(&s),);
    |                  ^^ borrowed value does not live long enough
 LL |     drop(a.0);