]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/map-types.stderr
Rollup merge of #106835 - compiler-errors:new-solver-gat-rebase-oops, r=lcnr
[rust.git] / tests / ui / traits / map-types.stderr
1 error[E0277]: the trait bound `Box<dyn Map<isize, isize>>: Map<usize, isize>` is not satisfied
2   --> $DIR/map-types.rs:17:41
3    |
4 LL |     let y: Box<dyn Map<usize, isize>> = Box::new(x);
5    |                                         ^^^^^^^^^^^ the trait `Map<usize, isize>` is not implemented for `Box<dyn Map<isize, isize>>`
6    |
7    = help: the trait `Map<K, V>` is implemented for `HashMap<K, V>`
8    = note: required for the cast from `Box<dyn Map<isize, isize>>` to the object type `dyn Map<usize, isize>`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0277`.