]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/regions/regions-outlives-projection-container.stderr
New upstream version 1.31.0~beta.4+dfsg1
[rustc.git] / src / test / ui / regions / regions-outlives-projection-container.stderr
index 4b8d445ff4a9c9c986dcb64fad0efe1aa808f6ed..2c37d94361603843d2eab9ac9f09db0e0edc870c 100644 (file)
@@ -1,33 +1,33 @@
 error[E0491]: in type `&'a WithAssoc<TheType<'b>>`, reference has a longer lifetime than the data it references
-  --> $DIR/regions-outlives-projection-container.rs:52:12
+  --> $DIR/regions-outlives-projection-container.rs:50:13
    |
-LL |     let _: &'a WithAssoc<TheType<'b>> = loop { }; //~ ERROR reference has a longer lifetime
-   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
+LL |     let _x: &'a WithAssoc<TheType<'b>> = loop { };
+   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
-note: the pointer is valid for the lifetime 'a as defined on the function body at 46:15
-  --> $DIR/regions-outlives-projection-container.rs:46:15
+note: the pointer is valid for the lifetime 'a as defined on the function body at 42:15
+  --> $DIR/regions-outlives-projection-container.rs:42:15
    |
 LL | fn with_assoc<'a,'b>() {
    |               ^^
-note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 46:18
-  --> $DIR/regions-outlives-projection-container.rs:46:18
+note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 42:18
+  --> $DIR/regions-outlives-projection-container.rs:42:18
    |
 LL | fn with_assoc<'a,'b>() {
    |                  ^^
 
 error[E0491]: in type `&'a WithoutAssoc<TheType<'b>>`, reference has a longer lifetime than the data it references
-  --> $DIR/regions-outlives-projection-container.rs:69:12
+  --> $DIR/regions-outlives-projection-container.rs:68:13
    |
-LL |     let _: &'a WithoutAssoc<TheType<'b>> = loop { }; //~ ERROR reference has a longer lifetime
-   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+LL |     let _x: &'a WithoutAssoc<TheType<'b>> = loop { };
+   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
-note: the pointer is valid for the lifetime 'a as defined on the function body at 65:18
-  --> $DIR/regions-outlives-projection-container.rs:65:18
+note: the pointer is valid for the lifetime 'a as defined on the function body at 64:18
+  --> $DIR/regions-outlives-projection-container.rs:64:18
    |
 LL | fn without_assoc<'a,'b>() {
    |                  ^^
-note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 65:21
-  --> $DIR/regions-outlives-projection-container.rs:65:21
+note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 64:21
+  --> $DIR/regions-outlives-projection-container.rs:64:21
    |
 LL | fn without_assoc<'a,'b>() {
    |                     ^^