]> git.proxmox.com Git - rustc.git/blob - src/test/ui/nll/ty-outlives/impl-trait-captures.stderr
Update upstream source from tag 'upstream/1.27.1+dfsg1'
[rustc.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 | fn foo<'a, T>(x: &T) -> impl Foo<'a> {
11 | - consider changing the type of `x` to `&ReEarlyBound(0, 'a) T`
12 LL | x
13 | ^ lifetime `ReEarlyBound(0, 'a)` required
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0621`.