We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1992a7a commit ca0d3feCopy full SHA for ca0d3fe
tests/fail/const-ub-checks.rs
@@ -1,4 +1,3 @@
1
-
2
const UNALIGNED_READ: () = unsafe {
3
let x = &[0u8; 4];
4
let ptr = x.as_ptr().cast::<u32>();
0 commit comments