error[E0308]: mismatched types --> $DIR/no-unsize-coerce-dyn-trait.rs:11:26 | LL | let y: Box = x; | ----------- ^ expected trait `B`, found trait `A` | | | expected due to this | = note: expected struct `Box` found struct `Box` error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0308`.