]> git.lizzy.rs Git - rust.git/blob - src/test/ui/map-types.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / map-types.stderr
1 error[E0277]: the trait bound `std::boxed::Box<dyn Map<isize, isize>>: Map<usize, isize>` is not satisfied
2   --> $DIR/map-types.rs:27:37
3    |
4 LL |     let y: Box<Map<usize, isize>> = Box::new(x);
5    |                                     ^^^^^^^^^^^ the trait `Map<usize, isize>` is not implemented for `std::boxed::Box<dyn Map<isize, isize>>`
6    |
7    = note: required for the cast to the object type `dyn Map<usize, isize>`
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0277`.