Closed
Description
@eddyb would like
use std::mem::transmute;
fn main() {
for &my_bool in &[true, false] {
unsafe {
println!("{}", transmute::<_, &str>(!-(my_bool as i128) & transmute::<_, i128>("false !") | -(my_bool as i128) & transmute::<_, i128>("true !")));
}
}
}
to be in the miri test suite.
The diagnostic is also wrong, it's actually that we want to put two pointers into a single i128
immediate value.