]> git.lizzy.rs Git - rust.git/blob - tests/ui/dyn-star/check-size-at-cast.stderr
af2a1ccf71c6d6e7851c389a030aa4a0d43e2c0f
[rust.git] / tests / ui / dyn-star / check-size-at-cast.stderr
1 error[E0277]: `[i32; 4]` needs to be a pointer-sized type
2   --> $DIR/check-size-at-cast.rs:7:13
3    |
4 LL |     let i = [1, 2, 3, 4] as dyn* Debug;
5    |             ^^^^^^^^^^^^ `[i32; 4]` needs to be a pointer-sized type
6    |
7    = help: the trait `PointerSized` is not implemented for `[i32; 4]`
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0277`.