about summary refs log tree commit diff
path: root/tests/ui/consts/slice_elem_ty_mismatch_in_unsizing_cast.rs
blob: d821b6a0117e60d4e5d2927dd1bd867fbd81402b (plain)
1
2
3
4
const FOO: &str = unsafe { &*(1_usize as *const [i64; 0] as *const [u8] as *const str) };
//~^ ERROR: cannot cast

fn main() {}