rust/src/test/ui/nll/ty-outlives/impl-trait-captures.stderr

14 lines
457 B
Plaintext
Raw Normal View History

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
|
2018-02-22 18:42:32 -06:00
LL | x
| ^ 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> {
| ^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0621`.