fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
527 B14 linesraw
1error[E0621]: explicit lifetime required in the type of `x`
2  --> $DIR/impl-trait-captures.rs:10:25
3   |
4LL | fn foo<'a, T>(x: &T) -> impl Foo<'a> {
5   |                         ^^^^^^^^^^^^ lifetime `ReEarlyBound(0, 'a)` required
6   |
7help: add explicit lifetime `ReEarlyBound(0, 'a)` to the type of `x`
8   |
9LL | fn foo<'a, T>(x: &ReEarlyBound(0, 'a) T) -> impl Foo<'a> {
10   |                  ^^^^^^^^^^^^^^^^^^^^^^
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0621`.