]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/associated-types/associated-types-outlives.stderr
Rollup merge of #76468 - SNCPlay42:lifetime-names, r=Mark-Simulacrum
[rust.git] / src / test / ui / associated-types / associated-types-outlives.stderr
index e35862d718f4933bf6f789fe29d3a54d31643f3d..840e33b4b8a8e900cedd6b87f1794cfd10434097 100644 (file)
@@ -2,9 +2,11 @@ error[E0505]: cannot move out of `x` because it is borrowed
   --> $DIR/associated-types-outlives.rs:22:14
    |
 LL |         's: loop { y = denormalise(&x); break }
-   |                                     - borrow of `x` occurs here
+   |                                    -- borrow of `x` occurs here
 LL |         drop(x);
    |              ^ move out of `x` occurs here
+LL |         return f(y);
+   |                  - borrow later used here
 
 error: aborting due to previous error