We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9493d8d commit daf59aeCopy full SHA for daf59ae
rust-version
@@ -1 +1 @@
1
-21265dd0d209e7b682f249a3a45034f02d32650b
+1536a53ea4798df052dc31a611c2f29c8f529be7
tests/fail/invalid_bool.rs
@@ -2,7 +2,6 @@
2
// Make sure we find these even with many checks disabled.
3
//@compile-flags: -Zmiri-disable-alignment-check -Zmiri-disable-stacked-borrows -Zmiri-disable-validation
4
5
-
6
fn main() {
7
let b = unsafe { std::mem::transmute::<u8, bool>(2) };
8
let _x = b == std::hint::black_box(true); //~ ERROR: interpreting an invalid 8-bit value as a bool
0 commit comments