2017-12-12 08:06:35 -06:00
|
|
|
error[E0621]: explicit lifetime required in the type of `x`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/impl-trait-captures.rs:11:5
|
2017-12-10 09:23:45 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | x
|
2017-12-12 08:06:35 -06:00
|
|
|
| ^ lifetime `ReEarlyBound(0, 'a)` required
|
2018-08-06 12:56:24 -05:00
|
|
|
help: add explicit lifetime `ReEarlyBound(0, 'a)` to the type of `x`
|
|
|
|
|
|
|
|
|
LL | fn foo<'a, T>(x: &ReEarlyBound(0, 'a) T) -> impl Foo<'a> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
2017-12-10 09:23:45 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0621`.
|