]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/int_ptr_for_zst_slices.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / consts / int_ptr_for_zst_slices.rs
1 // check-pass
2
3 const FOO: &str = unsafe { &*(1_usize as *const [u8; 0] as *const [u8] as *const str) };
4
5 fn main() {}