]>
Commit | Line | Data |
---|---|---|
ff7c6d11 XL |
1 | warning: not reporting region error due to -Znll |
2 | --> $DIR/impl-trait-captures.rs:22:5 | |
3 | | | |
4 | 22 | x | |
5 | | ^ | |
6 | ||
7 | error[E0621]: explicit lifetime required in the type of `x` | |
8 | --> $DIR/impl-trait-captures.rs:22:5 | |
9 | | | |
10 | 21 | fn foo<'a, T>(x: &T) -> impl Foo<'a> { | |
11 | | - consider changing the type of `x` to `&ReEarlyBound(0, 'a) T` | |
12 | 22 | x | |
13 | | ^ lifetime `ReEarlyBound(0, 'a)` required | |
14 | ||
15 | error: aborting due to previous error | |
16 |