]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/lifetime-errors/ex2a-push-one-existing-name.stderr
Closes #52413: Provide structured suggestion instead of label
[rust.git] / src / test / ui / lifetime-errors / ex2a-push-one-existing-name.stderr
index ede76bca2ba0a9dbcd7512b064ad300a6ae628a5..088605a2b85441875f14e98a49a4328404e318e1 100644 (file)
@@ -2,7 +2,7 @@ error[E0621]: explicit lifetime required in the type of `y`
   --> $DIR/ex2a-push-one-existing-name.rs:16:12
    |
 LL | fn foo<'a>(x: &mut Vec<Ref<'a, i32>>, y: Ref<i32>) {
-   |                                       - consider changing the type of `y` to `Ref<'a, i32>`
+   |                                          -------- help: consider changing the type of `y` to : `Ref<'a, i32>`
 LL |     x.push(y); //~ ERROR explicit lifetime
    |            ^ lifetime `'a` required