]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/cast/cast-to-unsized-trait-object-suggestion.stderr
Tweak "non-primitive cast" error
[rust.git] / src / test / ui / cast / cast-to-unsized-trait-object-suggestion.stderr
index ffa02533d8b66db7869c917abf13b15225b8c4e8..9b86f8d4def86bd04fcb118e7fcfaeac652f21cf 100644 (file)
@@ -12,7 +12,7 @@ error[E0620]: cast to unsized type: `std::boxed::Box<{integer}>` as `dyn std::ma
 LL |     Box::new(1) as dyn Send;
    |     ^^^^^^^^^^^^^^^--------
    |                    |
-   |                    help: try casting to a `Box` instead: `Box<dyn Send>`
+   |                    help: you can cast to a `Box` instead: `Box<dyn Send>`
 
 error: aborting due to 2 previous errors