]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/ty-outlives/impl-trait-captures.stderr
Rollup merge of #53110 - Xanewok:save-analysis-remap-path, r=nrc
[rust.git] / src / test / ui / nll / ty-outlives / impl-trait-captures.stderr
1 warning: not reporting region error due to nll
2   --> $DIR/impl-trait-captures.rs:21:5
3    |
4 LL |     x
5    |     ^
6
7 error[E0621]: explicit lifetime required in the type of `x`
8   --> $DIR/impl-trait-captures.rs:21:5
9    |
10 LL |     x
11    |     ^ lifetime `ReEarlyBound(0, 'a)` required
12 help: add explicit lifetime `ReEarlyBound(0, 'a)` to the type of `x`
13    |
14 LL | fn foo<'a, T>(x: &ReEarlyBound(0, 'a) T) -> impl Foo<'a> {
15    |                  ^^^^^^^^^^^^^^^^^^^^^^
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0621`.