b7c57fee61
the bool thing will be fixed by the validation I have planned, and we already ignored another test around modifing constants.
8 lines
289 B
Rust
8 lines
289 B
Rust
//ignore-test FIXME (do some basic validation of invariants for all values in flight)
|
|
|
|
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
|
|
}
|