]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-5883.stderr
Auto merge of #104334 - compiler-errors:ufcs-sugg-wrong-def-id, r=estebank
[rust.git] / src / test / ui / issues / issue-5883.stderr
index 8a20a60853a63a3e952988cb055779c786cd8fc9..ffff403e0d4656508d4dbdbf3c4e7b32f6bb749f 100644 (file)
@@ -6,6 +6,10 @@ LL |     r: dyn A + 'static
    |
    = help: the trait `Sized` is not implemented for `(dyn A + 'static)`
    = help: unsized fn params are gated as an unstable feature
+help: you can use `impl Trait` as the argument type
+   |
+LL |     r: impl A + 'static
+   |        ~~~~
 help: function arguments must have a statically known size, borrowed types always have a known size
    |
 LL |     r: &dyn A + 'static