]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issue-16922.stderr
Closes #52413: Provide structured suggestion instead of label
[rust.git] / src / test / ui / issue-16922.stderr
index cf81d4b4d08b731b6cba33c7ef765a7760c4cdd4..2f84fb7842f8e97da47424997802412a7a719d08 100644 (file)
@@ -2,7 +2,7 @@ error[E0621]: explicit lifetime required in the type of `value`
   --> $DIR/issue-16922.rs:14:5
    |
 LL | fn foo<T: Any>(value: &T) -> Box<Any> {
-   |                ----- consider changing the type of `value` to `&'static T`
+   |                       -- help: consider changing the type of `value` to : `&'static T`
 LL |     Box::new(value) as Box<Any>
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime `'static` required