fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/dst-bad-assign.rs:35:14 3 | 4LL | f5.ptr = Bar1 {f: 36}; 5 | ------ ^^^^^^^^^^^^ expected `dyn ToBar`, found `Bar1` 6 | | 7 | expected due to the type of this binding 8 | 9 = note: expected trait object `dyn ToBar` 10 found struct `Bar1` 11 12error[E0277]: the size for values of type `dyn ToBar` cannot be known at compilation time 13 --> $DIR/dst-bad-assign.rs:35:5 14 | 15LL | f5.ptr = Bar1 {f: 36}; 16 | ^^^^^^ doesn't have a size known at compile-time 17 | 18 = help: the trait `Sized` is not implemented for `dyn ToBar` 19 = note: the left-hand-side of an assignment must have a statically known size 20 21error: aborting due to 2 previous errors 22 23Some errors have detailed explanations: E0277, E0308. 24For more information about an error, try `rustc --explain E0277`.