1 warning: not reporting region error due to nll
2 --> $DIR/impl-trait-captures.rs:21:5
7 error[E0621]: explicit lifetime required in the type of `x`
8 --> $DIR/impl-trait-captures.rs:21:5
10 LL | fn foo<'a, T>(x: &T) -> impl Foo<'a> {
11 | - consider changing the type of `x` to `&ReEarlyBound(0, 'a) T`
13 | ^ lifetime `ReEarlyBound(0, 'a)` required
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0621`.