11error[E0261]: use of undeclared lifetime name `'b`
2- --> $DIR/nested-rpit-hrtb.rs:57 :77
2+ --> $DIR/nested-rpit-hrtb.rs:56 :77
33 |
44LL | fn two_htrb_outlives() -> impl for<'a> Foo<'a, Assoc = impl for<'b> Sized + 'b> {}
55 | ^^ undeclared lifetime
@@ -15,7 +15,7 @@ LL | fn two_htrb_outlives<'b>() -> impl for<'a> Foo<'a, Assoc = impl for<'b> Siz
1515 | ++++
1616
1717error[E0261]: use of undeclared lifetime name `'b`
18- --> $DIR/nested-rpit-hrtb.rs:65 :82
18+ --> $DIR/nested-rpit-hrtb.rs:64 :82
1919 |
2020LL | fn two_htrb_outlives_uses() -> impl for<'a> Bar<'a, Assoc = impl for<'b> Sized + 'b> {}
2121 | ^^ undeclared lifetime
@@ -87,12 +87,6 @@ LL | fn one_hrtb_mention_fn_trait_param_uses<'b>() -> impl for<'a> Bar<'a, Assoc
8787 but trait `Qux<'_>` is implemented for `()`
8888 = help: for that trait implementation, expected `()`, found `&'a ()`
8989
90- error: lifetime may not live long enough
91- --> $DIR/nested-rpit-hrtb.rs:49:93
92- |
93- LL | fn one_hrtb_mention_fn_outlives_uses<'b>() -> impl for<'a> Bar<'a, Assoc = impl Sized + 'b> {}
94- | -- lifetime `'b` defined here ^^ opaque type requires that `'b` must outlive `'static`
95-
9690error: implementation of `Bar` is not general enough
9791 --> $DIR/nested-rpit-hrtb.rs:49:93
9892 |
@@ -103,7 +97,7 @@ LL | fn one_hrtb_mention_fn_outlives_uses<'b>() -> impl for<'a> Bar<'a, Assoc =
10397 = note: ...but it actually implements `Bar<'0>`, for some specific lifetime `'0`
10498
10599error[E0277]: the trait bound `for<'a, 'b> &'a (): Qux<'b>` is not satisfied
106- --> $DIR/nested-rpit-hrtb.rs:61 :64
100+ --> $DIR/nested-rpit-hrtb.rs:60 :64
107101 |
108102LL | fn two_htrb_trait_param_uses() -> impl for<'a> Bar<'a, Assoc = impl for<'b> Qux<'b>> {}
109103 | ^^^^^^^^^^^^^^^^^^^^ the trait `for<'a, 'b> Qux<'b>` is not implemented for `&'a ()`
@@ -112,7 +106,7 @@ LL | fn two_htrb_trait_param_uses() -> impl for<'a> Bar<'a, Assoc = impl for<'b>
112106 but trait `Qux<'_>` is implemented for `()`
113107 = help: for that trait implementation, expected `()`, found `&'a ()`
114108
115- error: aborting due to 10 previous errors
109+ error: aborting due to 9 previous errors
116110
117111Some errors have detailed explanations: E0261, E0277, E0657.
118112For more information about an error, try `rustc --explain E0261`.
0 commit comments