error[E0277]: the trait bound `std::boxed::Box>: Map` is not satisfied --> $DIR/map-types.rs:27:37 | LL | let y: Box> = Box::new(x); | ^^^^^^^^^^^ the trait `Map` is not implemented for `std::boxed::Box>` | = note: required for the cast to the object type `dyn Map` error: aborting due to previous error For more information about this error, try `rustc --explain E0277`.