summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/map-types.stderr
blob: 4315056f2065f6db7352da93dfd272ece36ae5dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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>>`
   |
   = help: the trait `Map<K, V>` is implemented for `HashMap<K, V>`
   = note: required for the cast from `Box<Box<dyn Map<isize, isize>>>` to `Box<dyn Map<usize, isize>>`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.