]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cast/cast-to-unsized-trait-object-suggestion.stderr
Auto merge of #97191 - wesleywiser:main_thread_name, r=ChrisDenton
[rust.git] / src / test / ui / cast / cast-to-unsized-trait-object-suggestion.stderr
1 error[E0620]: cast to unsized type: `&{integer}` as `dyn Send`
2   --> $DIR/cast-to-unsized-trait-object-suggestion.rs:2:5
3    |
4 LL |     &1 as dyn Send;
5    |     ^^^^^^--------
6    |           |
7    |           help: try casting to a reference instead: `&dyn Send`
8
9 error[E0620]: cast to unsized type: `Box<{integer}>` as `dyn Send`
10   --> $DIR/cast-to-unsized-trait-object-suggestion.rs:3:5
11    |
12 LL |     Box::new(1) as dyn Send;
13    |     ^^^^^^^^^^^^^^^--------
14    |                    |
15    |                    help: you can cast to a `Box` instead: `Box<dyn Send>`
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0620`.