2017-05-16 08:12:24 -05:00
|
|
|
error[E0620]: cast to unsized type: `&{integer}` as `std::marker::Send`
|
2017-05-16 08:11:34 -05:00
|
|
|
--> $DIR/cast-to-unsized-trait-object-suggestion.rs:12:5
|
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
12 | &1 as Send; //~ ERROR cast to unsized
|
2017-05-16 08:11:34 -05:00
|
|
|
| ^^^^^^----
|
|
|
|
| |
|
|
|
|
| help: try casting to a reference instead: `&Send`
|
|
|
|
|
2017-05-16 08:12:24 -05:00
|
|
|
error[E0620]: cast to unsized type: `std::boxed::Box<{integer}>` as `std::marker::Send`
|
2017-05-16 08:11:34 -05:00
|
|
|
--> $DIR/cast-to-unsized-trait-object-suggestion.rs:13:5
|
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
13 | 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-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0620"
|