|
| 1 | +error[E0261]: use of undeclared lifetime name `'b` |
| 2 | + --> $DIR/nested-rpit-hrtb.rs:54:77 |
| 3 | + | |
| 4 | +LL | fn two_htrb_outlives() -> impl for<'a> Foo<'a, Assoc = impl for<'b> Sized + 'b> {} |
| 5 | + | ^^ undeclared lifetime |
| 6 | + | |
| 7 | + = note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html |
| 8 | +help: consider making the bound lifetime-generic with a new `'b` lifetime |
| 9 | + | |
| 10 | +LL | fn two_htrb_outlives() -> impl for<'b, 'a> Foo<'a, Assoc = impl for<'b> Sized + 'b> {} |
| 11 | + | +++ |
| 12 | +help: consider introducing lifetime `'b` here |
| 13 | + | |
| 14 | +LL | fn two_htrb_outlives<'b>() -> impl for<'a> Foo<'a, Assoc = impl for<'b> Sized + 'b> {} |
| 15 | + | ++++ |
| 16 | + |
| 17 | +error[E0261]: use of undeclared lifetime name `'b` |
| 18 | + --> $DIR/nested-rpit-hrtb.rs:61:82 |
| 19 | + | |
| 20 | +LL | fn two_htrb_outlives_uses() -> impl for<'a> Bar<'a, Assoc = impl for<'b> Sized + 'b> {} |
| 21 | + | ^^ undeclared lifetime |
| 22 | + | |
| 23 | +help: consider making the bound lifetime-generic with a new `'b` lifetime |
| 24 | + | |
| 25 | +LL | fn two_htrb_outlives_uses() -> impl for<'b, 'a> Bar<'a, Assoc = impl for<'b> Sized + 'b> {} |
| 26 | + | +++ |
| 27 | +help: consider introducing lifetime `'b` here |
| 28 | + | |
| 29 | +LL | fn two_htrb_outlives_uses<'b>() -> impl for<'a> Bar<'a, Assoc = impl for<'b> Sized + 'b> {} |
| 30 | + | ++++ |
| 31 | + |
| 32 | +error: higher kinded lifetime bounds on nested opaque types are not supported yet |
| 33 | + --> $DIR/nested-rpit-hrtb.rs:25:69 |
| 34 | + | |
| 35 | +LL | fn one_hrtb_outlives() -> impl for<'a> Foo<'a, Assoc = impl Sized + 'a> {} |
| 36 | + | ^^ |
| 37 | + | |
| 38 | +note: lifetime declared here |
| 39 | + --> $DIR/nested-rpit-hrtb.rs:25:36 |
| 40 | + | |
| 41 | +LL | fn one_hrtb_outlives() -> impl for<'a> Foo<'a, Assoc = impl Sized + 'a> {} |
| 42 | + | ^^ |
| 43 | + |
| 44 | +error: higher kinded lifetime bounds on nested opaque types are not supported yet |
| 45 | + --> $DIR/nested-rpit-hrtb.rs:29:68 |
| 46 | + | |
| 47 | +LL | fn one_hrtb_trait_param() -> impl for<'a> Foo<'a, Assoc = impl Qux<'a>> {} |
| 48 | + | ^^ |
| 49 | + | |
| 50 | +note: lifetime declared here |
| 51 | + --> $DIR/nested-rpit-hrtb.rs:29:39 |
| 52 | + | |
| 53 | +LL | fn one_hrtb_trait_param() -> impl for<'a> Foo<'a, Assoc = impl Qux<'a>> {} |
| 54 | + | ^^ |
| 55 | + |
| 56 | +error: higher kinded lifetime bounds on nested opaque types are not supported yet |
| 57 | + --> $DIR/nested-rpit-hrtb.rs:32:74 |
| 58 | + | |
| 59 | +LL | fn one_hrtb_outlives_uses() -> impl for<'a> Bar<'a, Assoc = impl Sized + 'a> {} |
| 60 | + | ^^ |
| 61 | + | |
| 62 | +note: lifetime declared here |
| 63 | + --> $DIR/nested-rpit-hrtb.rs:32:41 |
| 64 | + | |
| 65 | +LL | fn one_hrtb_outlives_uses() -> impl for<'a> Bar<'a, Assoc = impl Sized + 'a> {} |
| 66 | + | ^^ |
| 67 | + |
| 68 | +error: higher kinded lifetime bounds on nested opaque types are not supported yet |
| 69 | + --> $DIR/nested-rpit-hrtb.rs:35:73 |
| 70 | + | |
| 71 | +LL | fn one_hrtb_trait_param_uses() -> impl for<'a> Bar<'a, Assoc = impl Qux<'a>> {} |
| 72 | + | ^^ |
| 73 | + | |
| 74 | +note: lifetime declared here |
| 75 | + --> $DIR/nested-rpit-hrtb.rs:35:44 |
| 76 | + | |
| 77 | +LL | fn one_hrtb_trait_param_uses() -> impl for<'a> Bar<'a, Assoc = impl Qux<'a>> {} |
| 78 | + | ^^ |
| 79 | + |
| 80 | +error: aborting due to 6 previous errors |
| 81 | + |
| 82 | +For more information about this error, try `rustc --explain E0261`. |
0 commit comments