2018-05-26 22:51:50 -05:00
|
|
|
error[E0620]: cast to unsized type: `&{integer}` as `dyn std::marker::Send`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/cast-to-unsized-trait-object-suggestion.rs:2:5
|
2017-05-16 08:11:34 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | &1 as Send; //~ ERROR cast to unsized
|
2017-05-16 08:11:34 -05:00
|
|
|
| ^^^^^^----
|
|
|
|
| |
|
|
|
|
| help: try casting to a reference instead: `&Send`
|
|
|
|
|
2018-05-26 22:51:50 -05:00
|
|
|
error[E0620]: cast to unsized type: `std::boxed::Box<{integer}>` as `dyn std::marker::Send`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/cast-to-unsized-trait-object-suggestion.rs:3:5
|
2017-05-16 08:11:34 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Box::new(1) as Send; //~ ERROR cast to unsized
|
2017-05-16 08:11:34 -05:00
|
|
|
| ^^^^^^^^^^^^^^^----
|
|
|
|
| |
|
|
|
|
| help: try casting to a `Box` instead: `Box<Send>`
|
|
|
|
|
2017-05-16 08:12:24 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2017-05-16 08:11:34 -05:00
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0620`.
|