]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/lifetimes/borrowck-let-suggestion.stderr
New upstream version 1.28.0~beta.14+dfsg1
[rustc.git] / src / test / ui / lifetimes / borrowck-let-suggestion.stderr
index c78b09a86a49d1b70dde3dfa8291ed8720802b38..32fdb9df96f2520f97e9f15315fc2d7c8e9a41d9 100644 (file)
@@ -1,10 +1,11 @@
 error[E0597]: borrowed value does not live long enough
-  --> $DIR/borrowck-let-suggestion.rs:12:13
+  --> $DIR/borrowck-let-suggestion.rs:12:17
    |
-LL |     let x = vec![1].iter();
-   |             ^^^^^^^       - temporary value dropped here while still borrowed
-   |             |
-   |             temporary value does not live long enough
+LL |     let mut x = vec![1].iter();
+   |                 ^^^^^^^       - temporary value dropped here while still borrowed
+   |                 |
+   |                 temporary value does not live long enough
+LL |     x.use_mut();
 LL | }
    | - temporary value needs to live until here
    |