rust/tests/ui/dst/dst-bad-assign-2.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
469 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0277]: the size for values of type `dyn ToBar` cannot be known at compilation time
2018-12-25 09:56:47 -06:00
--> $DIR/dst-bad-assign-2.rs:35:5
2018-08-08 07:28:26 -05:00
|
LL | f5.ptr = *z;
| ^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `dyn ToBar`
2018-08-08 07:28:26 -05: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`.