]> git.lizzy.rs Git - rust.git/blob - tests/ui/dyn-star/check-size-at-cast.rs
Rename PointerSized to PointerLike
[rust.git] / tests / ui / dyn-star / check-size-at-cast.rs
1 #![feature(dyn_star)]
2 #![allow(incomplete_features)]
3
4 use std::fmt::Debug;
5
6 fn main() {
7     let i = [1, 2, 3, 4] as dyn* Debug;
8     //~^ ERROR `[i32; 4]` needs to have the same alignment and size as a pointer
9     dbg!(i);
10 }