]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/regions/regions-outlives-projection-container-wc.nll.stderr
Auto merge of #60093 - GuillaumeGomez:fix-attrs-pos, r=Manishearth
[rust.git] / src / test / ui / regions / regions-outlives-projection-container-wc.nll.stderr
index 836f8c28a737a81d54d10c84bf56624dcde6363e..880fe17b740e4b508c68f9e508c2eace409e38d1 100644 (file)
@@ -1,13 +1,13 @@
-error: unsatisfied lifetime constraints
-  --> $DIR/regions-outlives-projection-container-wc.rs:46:13
+error: lifetime may not live long enough
+  --> $DIR/regions-outlives-projection-container-wc.rs:37:12
    |
 LL | fn with_assoc<'a,'b>() {
    |               -- -- lifetime `'b` defined here
    |               |
    |               lifetime `'a` defined here
 ...
-LL |     let _x: &'a WithAssoc<TheType<'b>> = loop { };
-   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'b` must outlive `'a`
+LL |     let _: &'a WithAssoc<TheType<'b>> = loop { };
+   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'b` must outlive `'a`
 
 error: aborting due to previous error