]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/span/regions-escape-loop-via-variable.stderr
Rollup merge of #87922 - Manishearth:c-enum-target-spec, r=nagisa,eddyb
[rust.git] / src / test / ui / span / regions-escape-loop-via-variable.stderr
index ef36b81f49364f0afbc67af14336767c229d557d..42df668529749df6d739a23fd8c37827cc5fde92 100644 (file)
@@ -1,13 +1,12 @@
 error[E0597]: `x` does not live long enough
-  --> $DIR/regions-escape-loop-via-variable.rs:11:14
+  --> $DIR/regions-escape-loop-via-variable.rs:11:13
    |
+LL |         let x = 1 + *p;
+   |                     -- borrow later used here
 LL |         p = &x;
-   |              ^ borrowed value does not live long enough
+   |             ^^ borrowed value does not live long enough
 LL |     }
    |     - `x` dropped here while still borrowed
-LL |
-LL | }
-   | - borrowed value needs to live until here
 
 error: aborting due to previous error