You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: Undefined Behavior: constructing invalid value: encountered 0x62, but expected a boolean
--> src/main.rs:19:25
|
19 | assert_eq!(unsafe { *un3.outer }, true);
| ^^^^^^^^^^ constructing invalid value: encountered 0x62, but expected a boolean
|
matthiaskrgr
changed the title
ICE: Invalid bool 0x62Invalid bool 0x62 with associated_type_bounds
ICE: Invalid bool 0x62 with associated_type_bounds
Nov 27, 2023
fnmain(){let b = unsafe{ std::mem::transmute::<u8,bool>(2)};let _x = b == std::hint::black_box(true);//~ ERROR: interpreting an invalid 8-bit value as a bool}
with Zcodegen-backend=cranelift -Zmir-opt-level=2 still repros this
rustc src/main.rs -Zcodegen-backend=cranelift -Zmir-opt-level=2
The text was updated successfully, but these errors were encountered: