1error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
2  --> $DIR/issue-87258_b.rs:21:21
3   |
4LL |     fn foo<'a>() -> Self::FooFuture<'a> {
5   |                     ^^^^^^^^^^^^^^^^^^^
6   |
7   = note: hidden type `Struct<'_>` captures lifetime '_#7r
8
9error: aborting due to previous error
10
11For more information about this error, try `rustc --explain E0700`.
12