|
1 | | -error: implementation of `Hrtb` is not general enough |
2 | | - --> $DIR/issue-88236-2.rs:16:38 |
| 1 | +error: higher kinded lifetime bounds on nested opaque types are not supported yet |
| 2 | + --> $DIR/issue-88236-2.rs:15:61 |
| 3 | + | |
| 4 | +LL | fn make_impl() -> impl for<'a> Hrtb<'a, Assoc = impl Send + 'a> {} |
| 5 | + | ^^ |
| 6 | + | |
| 7 | +note: lifetime declared here |
| 8 | + --> $DIR/issue-88236-2.rs:15:28 |
| 9 | + | |
| 10 | +LL | fn make_impl() -> impl for<'a> Hrtb<'a, Assoc = impl Send + 'a> {} |
| 11 | + | ^^ |
| 12 | + |
| 13 | +error: higher kinded lifetime bounds on nested opaque types are not supported yet |
| 14 | + --> $DIR/issue-88236-2.rs:18:80 |
3 | 15 | | |
4 | 16 | LL | fn make_weird_impl<'b>(x: &'b ()) -> impl for<'a> Hrtb<'a, Assoc = impl Send + 'a> { |
5 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Hrtb` is not general enough |
| 17 | + | ^^ |
6 | 18 | | |
7 | | - = note: `Hrtb<'0>` would have to be implemented for the type `&()`, for any lifetime `'0`... |
8 | | - = note: ...but `Hrtb<'1>` is actually implemented for the type `&'1 ()`, for some specific lifetime `'1` |
| 19 | +note: lifetime declared here |
| 20 | + --> $DIR/issue-88236-2.rs:18:47 |
| 21 | + | |
| 22 | +LL | fn make_weird_impl<'b>(x: &'b ()) -> impl for<'a> Hrtb<'a, Assoc = impl Send + 'a> { |
| 23 | + | ^^ |
9 | 24 |
|
10 | | -error: implementation of `Hrtb` is not general enough |
11 | | - --> $DIR/issue-88236-2.rs:19:36 |
| 25 | +error: higher kinded lifetime bounds on nested opaque types are not supported yet |
| 26 | + --> $DIR/issue-88236-2.rs:23:78 |
12 | 27 | | |
13 | 28 | LL | fn make_bad_impl<'b>(x: &'b ()) -> impl for<'a> Hrtb<'a, Assoc = impl Send + 'a> { |
14 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Hrtb` is not general enough |
| 29 | + | ^^ |
15 | 30 | | |
16 | | - = note: `Hrtb<'1>` would have to be implemented for the type `&()`, for any lifetime `'1`... |
17 | | - = note: ...but `Hrtb<'_>` is actually implemented for the type `&()` |
| 31 | +note: lifetime declared here |
| 32 | + --> $DIR/issue-88236-2.rs:23:45 |
| 33 | + | |
| 34 | +LL | fn make_bad_impl<'b>(x: &'b ()) -> impl for<'a> Hrtb<'a, Assoc = impl Send + 'a> { |
| 35 | + | ^^ |
18 | 36 |
|
19 | | -error: aborting due to 2 previous errors |
| 37 | +error: aborting due to 3 previous errors |
20 | 38 |
|
0 commit comments