]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/in-band-lifetimes/mismatched.nll.stderr
Closes #52413: Provide structured suggestion instead of label
[rust.git] / src / test / ui / in-band-lifetimes / mismatched.nll.stderr
index cd2ebc341ead136a8f265704f73999b99b8d0257..8da86d0879919c76ce2225f5febafbf783e57a6a 100644 (file)
@@ -14,9 +14,9 @@ error[E0621]: explicit lifetime required in the type of `y`
   --> $DIR/mismatched.rs:14:42
    |
 LL | fn foo(x: &'a u32, y: &u32) -> &'a u32 { y } //~ ERROR explicit lifetime required
-   |                    -                     ^ lifetime `'a` required
-   |                    |
-   |                    consider changing the type of `y` to `&'a u32`
+   |                       ----               ^ lifetime `'a` required
+   |                       |
+   |                       help: consider changing the type of `y` to : `&'a u32`
 
 error[E0623]: lifetime mismatch
   --> $DIR/mismatched.rs:16:46