about summary refs log tree commit diff
path: root/tests/ui/consts/const-eval/transmute-const.rs
blob: e67406a65630c1640b0494b2c595c41e24a52b4e (plain)
1
2
3
4
5
6
7
#![allow(unnecessary_transmutes)]
use std::mem;

static FOO: bool = unsafe { mem::transmute(3u8) };
//~^ ERROR 0x03, but expected a bool

fn main() {}