summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-eval/transmute-const.rs
blob: d9d0a3aea07be073ecbbc5b63a53a2e96bfc3c61 (plain)
1
2
3
4
5
6
7
// stderr-per-bitwidth
use std::mem;

static FOO: bool = unsafe { mem::transmute(3u8) };
//~^ ERROR it is undefined behavior to use this value

fn main() {}