6 lines
202 B
Rust
6 lines
202 B
Rust
fn main() {
|
|
let b = unsafe { std::mem::transmute::<u8, bool>(2) };
|
|
if b { unreachable!() } else { unreachable!() } //~ ERROR constant evaluation error
|
|
//~^ NOTE invalid boolean value read
|
|
}
|