]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/regions/regions-outlives-projection-container.nll.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / regions / regions-outlives-projection-container.nll.stderr
index 2cf6e245d19f65a506f84261a087dbefeddb3352..073a31900227e43e357b339d947df136eba08b9a 100644 (file)
@@ -8,6 +8,8 @@ LL | fn with_assoc<'a,'b>() {
 ...
 LL |     let _x: &'a WithAssoc<TheType<'b>> = loop { };
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'b` must outlive `'a`
+   |
+   = help: consider adding the following bound: `'b: 'a`
 
 error: lifetime may not live long enough
   --> $DIR/regions-outlives-projection-container.rs:54:13
@@ -19,6 +21,8 @@ LL | fn without_assoc<'a,'b>() {
 ...
 LL |     let _x: &'a WithoutAssoc<TheType<'b>> = loop { };
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'b` must outlive `'a`
+   |
+   = help: consider adding the following bound: `'b: 'a`
 
 error: lifetime may not live long enough
   --> $DIR/regions-outlives-projection-container.rs:63:5
@@ -30,6 +34,8 @@ LL | fn call_with_assoc<'a,'b>() {
 ...
 LL |     call::<&'a WithAssoc<TheType<'b>>>();
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'b` must outlive `'a`
+   |
+   = help: consider adding the following bound: `'b: 'a`
 
 error: lifetime may not live long enough
   --> $DIR/regions-outlives-projection-container.rs:70:5
@@ -41,6 +47,8 @@ LL | fn call_without_assoc<'a,'b>() {
 ...
 LL |     call::<&'a WithoutAssoc<TheType<'b>>>();
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'b` must outlive `'a`
+   |
+   = help: consider adding the following bound: `'b: 'a`
 
 error: aborting due to 4 previous errors