2018-08-08 12:28:26 +00:00
|
|
|
error[E0277]: the size for values of type `dyn ToBar` cannot be known at compilation time
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/dst-bad-assign-2.rs:35:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | f5.ptr = *z;
|
|
|
|
| ^^^^^^ doesn't have a size known at compile-time
|
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: the trait `Sized` is not implemented for `dyn ToBar`
|
2018-08-08 12:28:26 +00:00
|
|
|
= note: the left-hand-side of an assignment must have a statically known size
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|