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 2ed65da commit 2bb28c1Copy full SHA for 2bb28c1
library/core/tests/ptr.rs
@@ -677,7 +677,7 @@ fn align_offset_issue_103361() {
677
#[cfg(target_pointer_width = "16")]
678
const SIZE: usize = 1 << 13;
679
struct HugeSize([u8; SIZE - 1]);
680
- let _ = (SIZE as *const HugeSize).align_offset(SIZE);
+ let _ = ptr::invalid::<HugeSize>(SIZE).align_offset(SIZE);
681
}
682
683
#[test]
0 commit comments