summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/issues/issue-79494.rs
blob: fc39424b793f640c2d4174028e7731958033adf1 (plain)
1
2
3
4
5
// only-x86_64-unknown-linux-gnu

#![feature(const_transmute)]

const ZST: &[u8] = unsafe { std::mem::transmute(1usize) }; //~ ERROR cannot transmute between types of different sizes, or dependently-sized types