1 error[E0261]: use of undeclared lifetime name `'b`
2 --> $DIR/nested-rpit-hrtb.rs:54:77
4 LL | fn two_htrb_outlives() -> impl for<'a> Foo<'a, Assoc = impl for<'b> Sized + 'b> {}
5 | ^^ undeclared lifetime
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
10 LL | fn two_htrb_outlives() -> impl for<'b, 'a> Foo<'a, Assoc = impl for<'b> Sized + 'b> {}
12 help: consider introducing lifetime `'b` here
14 LL | fn two_htrb_outlives<'b>() -> impl for<'a> Foo<'a, Assoc = impl for<'b> Sized + 'b> {}
17 error[E0261]: use of undeclared lifetime name `'b`
18 --> $DIR/nested-rpit-hrtb.rs:61:82
20 LL | fn two_htrb_outlives_uses() -> impl for<'a> Bar<'a, Assoc = impl for<'b> Sized + 'b> {}
21 | ^^ undeclared lifetime
23 help: consider making the bound lifetime-generic with a new `'b` lifetime
25 LL | fn two_htrb_outlives_uses() -> impl for<'b, 'a> Bar<'a, Assoc = impl for<'b> Sized + 'b> {}
27 help: consider introducing lifetime `'b` here
29 LL | fn two_htrb_outlives_uses<'b>() -> impl for<'a> Bar<'a, Assoc = impl for<'b> Sized + 'b> {}
32 error: higher kinded lifetime bounds on nested opaque types are not supported yet
33 --> $DIR/nested-rpit-hrtb.rs:25:69
35 LL | fn one_hrtb_outlives() -> impl for<'a> Foo<'a, Assoc = impl Sized + 'a> {}
38 note: lifetime declared here
39 --> $DIR/nested-rpit-hrtb.rs:25:36
41 LL | fn one_hrtb_outlives() -> impl for<'a> Foo<'a, Assoc = impl Sized + 'a> {}
44 error: higher kinded lifetime bounds on nested opaque types are not supported yet
45 --> $DIR/nested-rpit-hrtb.rs:29:68
47 LL | fn one_hrtb_trait_param() -> impl for<'a> Foo<'a, Assoc = impl Qux<'a>> {}
50 note: lifetime declared here
51 --> $DIR/nested-rpit-hrtb.rs:29:39
53 LL | fn one_hrtb_trait_param() -> impl for<'a> Foo<'a, Assoc = impl Qux<'a>> {}
56 error: higher kinded lifetime bounds on nested opaque types are not supported yet
57 --> $DIR/nested-rpit-hrtb.rs:32:74
59 LL | fn one_hrtb_outlives_uses() -> impl for<'a> Bar<'a, Assoc = impl Sized + 'a> {}
62 note: lifetime declared here
63 --> $DIR/nested-rpit-hrtb.rs:32:41
65 LL | fn one_hrtb_outlives_uses() -> impl for<'a> Bar<'a, Assoc = impl Sized + 'a> {}
68 error: higher kinded lifetime bounds on nested opaque types are not supported yet
69 --> $DIR/nested-rpit-hrtb.rs:35:73
71 LL | fn one_hrtb_trait_param_uses() -> impl for<'a> Bar<'a, Assoc = impl Qux<'a>> {}
74 note: lifetime declared here
75 --> $DIR/nested-rpit-hrtb.rs:35:44
77 LL | fn one_hrtb_trait_param_uses() -> impl for<'a> Bar<'a, Assoc = impl Qux<'a>> {}
80 error: aborting due to 6 previous errors
82 For more information about this error, try `rustc --explain E0261`.