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