]> git.proxmox.com Git - rustc.git/blob - src/test/ui/cast/cast-to-unsized-trait-object-suggestion.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.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`.