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 b5d4499 commit a9c207dCopy full SHA for a9c207d
tests/run-pass/align_offset.rs
@@ -56,7 +56,8 @@ fn test_align_to() {
56
}
57
58
{
59
- let (l, m, r) = unsafe { s.align_to::<u64>() }; // requested alignment higher than allocation alignment
+ #[repr(align(8))] struct Align8(u64);
60
+ let (l, m, r) = unsafe { s.align_to::<Align8>() }; // requested alignment higher than allocation alignment
61
assert_eq!(l.len(), 4*N);
62
assert_eq!(r.len(), 0);
63
assert_eq!(m.len(), 0);
0 commit comments