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
151 B
Rust
Raw Normal View History

#![allow(unnecessary_transmutes)]
use std::mem;
static FOO: bool = unsafe { mem::transmute(3u8) };
//~^ ERROR 0x03, but expected a bool
fn main() {}