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

18 lines
527 B
Plaintext
Raw Normal View History

warning: not reporting region error due to -Znll
--> $DIR/impl-trait-captures.rs:22:5
|
2018-02-22 18:42:32 -06:00
LL | x
| ^
error[E0621]: explicit lifetime required in the type of `x`
--> $DIR/impl-trait-captures.rs:22:5
|
2018-02-22 18:42:32 -06:00
LL | fn foo<'a, T>(x: &T) -> impl Foo<'a> {
| - consider changing the type of `x` to `&ReEarlyBound(0, 'a) T`
2018-02-22 18:42:32 -06:00
LL | x
| ^ lifetime `ReEarlyBound(0, 'a)` required
error: aborting due to previous error
2018-02-19 14:40:25 -06:00
If you want more information on this error, try using "rustc --explain E0621"