blob: 71006e1f4e2d8e330e8b110fd03f9ccb598930a9 [file] [log] [blame]
error[E0277]: the trait bound `Box<dyn Map<isize, isize>>: Map<usize, isize>` is not satisfied
--> $DIR/map-types.rs:17:41
|
LL | let y: Box<dyn Map<usize, isize>> = Box::new(x);
| ^^^^^^^^^^^ the trait `Map<usize, isize>` is not implemented for `Box<dyn Map<isize, isize>>`
|
= note: required for the cast to the object type `dyn Map<usize, isize>`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.