]> git.lizzy.rs Git - rust.git/blob - tests/compile-fail/validity/invalid_bool.rs
af4ad67a4f0999db940cabdb65cff97b6433b0b3
[rust.git] / tests / compile-fail / validity / invalid_bool.rs
1 fn main() {
2     let _b = unsafe { std::mem::transmute::<u8, bool>(2) }; //~ ERROR encountered 2, but expected something in the range 0..=1
3 }