summary refs log tree commit diff
path: root/src/test/ui/consts/const-eval/transmute-const.rs
blob: 48f2b39832e68e7a18e0533dd66d8b4641bb5c94 (plain)
1
2
3
4
5
6
7
8
#![feature(const_transmute)]

use std::mem;

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

fn main() {}