2017-12-10 09:23:45 -06:00
|
|
|
warning: not reporting region error due to -Znll
|
|
|
|
--> $DIR/impl-trait-captures.rs:22:5
|
|
|
|
|
|
|
|
|
22 | x
|
|
|
|
| ^
|
|
|
|
|
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
|
|
|
|
|
|
2017-12-12 08:06:35 -06:00
|
|
|
21 | fn foo<'a, T>(x: &T) -> impl Foo<'a> {
|
|
|
|
| - consider changing the type of `x` to `&ReEarlyBound(0, 'a) T`
|
2017-12-10 09:23:45 -06:00
|
|
|
22 | 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"
|