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