rust/tests/ui/consts/int_ptr_for_zst_slices.rs
2024-02-16 20:02:50 +00:00

6 lines
119 B
Rust

//@ check-pass
const FOO: &str = unsafe { &*(1_usize as *const [u8; 0] as *const [u8] as *const str) };
fn main() {}