]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/span/mut-ptr-cant-outlive-ref.stderr
Rollup merge of #87922 - Manishearth:c-enum-target-spec, r=nagisa,eddyb
[rust.git] / src / test / ui / span / mut-ptr-cant-outlive-ref.stderr
index f6cf568a8d2bfef4316400447c519bdc884a6d0b..21b29464df50297c5c4bd920a676e9bcd427d3aa 100644 (file)
@@ -5,9 +5,9 @@ LL |         p = &*b;
    |               ^ borrowed value does not live long enough
 LL |     }
    |     - `b` dropped here while still borrowed
-...
-LL | }
-   | - borrowed value needs to live until here
+LL |
+LL |     p.use_ref();
+   |     - borrow later used here
 
 error: aborting due to previous error