2017-12-10 09:23:45 -06:00
|
|
|
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
|
2017-12-10 09:23:45 -06:00
|
|
|
| ^
|
|
|
|
|
2017-12-12 08:06:35 -06:00
|
|
|
error[E0621]: explicit lifetime required in the type of `x`
|
2017-12-10 09:23:45 -06:00
|
|
|
--> $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> {
|
2017-12-12 08:06:35 -06:00
|
|
|
| - consider changing the type of `x` to `&ReEarlyBound(0, 'a) T`
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | x
|
2017-12-12 08:06:35 -06:00
|
|
|
| ^ lifetime `ReEarlyBound(0, 'a)` required
|
2017-12-10 09:23:45 -06:00
|
|
|
|
|
|
|
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"
|