mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
13 lines
538 B
Plaintext
13 lines
538 B
Plaintext
error[E0277]: the size for values of type `impl Trait + ?Sized` cannot be known at compilation time
|
|
--> $DIR/unsized_coercion2.rs:15:33
|
|
|
|
|
LL | let y: Box<dyn Trait> = 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 Trait>`
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|