]> git.proxmox.com Git - rustc.git/blame - src/test/ui/nll/ty-outlives/impl-trait-captures.stderr
New upstream version 1.39.0+dfsg1
[rustc.git] / src / test / ui / nll / ty-outlives / impl-trait-captures.stderr
CommitLineData
ff7c6d11 1error[E0621]: explicit lifetime required in the type of `x`
532ac7d7 2 --> $DIR/impl-trait-captures.rs:10:25
ff7c6d11 3 |
532ac7d7
XL
4LL | fn foo<'a, T>(x: &T) -> impl Foo<'a> {
5 | ^^^^^^^^^^^^ lifetime `ReEarlyBound(0, 'a)` required
b7449926
XL
6help: add explicit lifetime `ReEarlyBound(0, 'a)` to the type of `x`
7 |
8LL | fn foo<'a, T>(x: &ReEarlyBound(0, 'a) T) -> impl Foo<'a> {
9 | ^^^^^^^^^^^^^^^^^^^^^^
ff7c6d11
XL
10
11error: aborting due to previous error
12
0531ce1d 13For more information about this error, try `rustc --explain E0621`.