]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/map-types.stderr
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / map-types.stderr
index 9aa9804424214d08eb0caa1a6f084e798d781c58..21dac1ab1edfb0a7ce6acccd3893842192b41cab 100644 (file)
@@ -1,8 +1,8 @@
 error[E0277]: the trait bound `std::boxed::Box<dyn Map<isize, isize>>: Map<usize, isize>` is not satisfied
-  --> $DIR/map-types.rs:17:37
+  --> $DIR/map-types.rs:17:41
    |
-LL |     let y: Box<Map<usize, isize>> = Box::new(x);
-   |                                     ^^^^^^^^^^^ the trait `Map<usize, isize>` is not implemented for `std::boxed::Box<dyn Map<isize, isize>>`
+LL |     let y: Box<dyn Map<usize, isize>> = Box::new(x);
+   |                                         ^^^^^^^^^^^ the trait `Map<usize, isize>` is not implemented for `std::boxed::Box<dyn Map<isize, isize>>`
    |
    = note: required for the cast to the object type `dyn Map<usize, isize>`