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 c439a59 commit 9dfee2eCopy full SHA for 9dfee2e
tests/ui/mir/alignment/packed.rs
@@ -12,7 +12,7 @@ fn main() {
12
// Test that we can use addr_of! to get the address of a packed member which according to its
13
// type is not aligned, but because it is a projection from a packed type is a valid place.
14
let ptr0 = std::ptr::addr_of!(memory[0].tail);
15
- let ptr1 = std::ptr::addr_of!(memory[0].tail);
+ let ptr1 = std::ptr::addr_of!(memory[1].tail);
16
// Even if ptr0 happens to be aligned by chance, ptr1 is not.
17
assert!(!ptr0.is_aligned() || !ptr1.is_aligned());
18
0 commit comments