2020-09-02 07:40:56 +00:00
|
|
|
error[E0620]: cast to unsized type: `&{integer}` as `dyn Send`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/cast-to-unsized-trait-object-suggestion.rs:2:5
|
2017-05-16 13:11:34 +00:00
|
|
|
|
|
2019-05-28 18:46:13 +00:00
|
|
|
LL | &1 as dyn Send;
|
|
|
|
| ^^^^^^--------
|
2017-05-16 13:11:34 +00:00
|
|
|
| |
|
2019-05-28 18:46:13 +00:00
|
|
|
| help: try casting to a reference instead: `&dyn Send`
|
2017-05-16 13:11:34 +00:00
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
error[E0620]: cast to unsized type: `Box<{integer}>` as `dyn Send`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/cast-to-unsized-trait-object-suggestion.rs:3:5
|
2017-05-16 13:11:34 +00:00
|
|
|
|
|
2019-05-28 18:46:13 +00:00
|
|
|
LL | Box::new(1) as dyn Send;
|
|
|
|
| ^^^^^^^^^^^^^^^--------
|
2017-05-16 13:11:34 +00:00
|
|
|
| |
|
2020-06-15 04:36:25 +00:00
|
|
|
| help: you can cast to a `Box` instead: `Box<dyn Send>`
|
2017-05-16 13:11:34 +00:00
|
|
|
|
2017-05-16 13:12:24 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2017-05-16 13:11:34 +00:00
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0620`.
|