]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/nll/ty-outlives/impl-trait-captures.stderr
Closes #52413: Provide structured suggestion instead of label
[rust.git] / src / test / ui / nll / ty-outlives / impl-trait-captures.stderr
index f836960a28cf372d4b492945dd41ab6fcdb1deb7..944fc1c266695e53508172dba2d76b4ebca380c8 100644 (file)
@@ -8,7 +8,7 @@ error[E0621]: explicit lifetime required in the type of `x`
   --> $DIR/impl-trait-captures.rs:21:5
    |
 LL | fn foo<'a, T>(x: &T) -> impl Foo<'a> {
-   |               - consider changing the type of `x` to `&ReEarlyBound(0, 'a) T`
+   |                  -- help: consider changing the type of `x` to : `&ReEarlyBound(0, 'a) T`
 LL |     x
    |     ^ lifetime `ReEarlyBound(0, 'a)` required