2024-05-31 04:51:10 -05:00
|
|
|
error[E0277]: the size for values of type `impl Trait + ?Sized` cannot be known at compilation time
|
2024-10-14 12:04:10 -05:00
|
|
|
--> $DIR/unsized_coercion3.rs:16:32
|
2024-05-31 04:51:10 -05:00
|
|
|
|
|
|
|
|
LL | let y: Box<dyn Send> = x;
|
|
|
|
| ^ doesn't have a size known at compile-time
|
|
|
|
|
|
|
|
|
= help: the trait `Sized` is not implemented for `impl Trait + ?Sized`
|
|
|
|
= note: required for the cast from `Box<impl Trait + ?Sized>` to `Box<dyn Send>`
|
|
|
|
|
2024-06-04 11:20:01 -05:00
|
|
|
error: aborting due to 1 previous error
|
2024-05-31 04:51:10 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|