Files
rust/tests/ui/consts/const-eval/transmute-const.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
168 B
Rust
Raw Normal View History

#![allow(unnecessary_transmutes)]
use std::mem;
static FOO: bool = unsafe { mem::transmute(3u8) };
2018-10-01 12:52:47 +02:00
//~^ ERROR it is undefined behavior to use this value
fn main() {}