]> git.lizzy.rs Git - rust.git/blob - tests/ui/dyn-star/check-size-at-cast.stderr
Rename PointerSized to PointerLike
[rust.git] / tests / ui / dyn-star / check-size-at-cast.stderr
1 error[E0277]: `[i32; 4]` needs to have the same alignment and size as a pointer
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-like type
6    |
7    = help: the trait `PointerLike` 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`.