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 bce7775 commit 29b0a7bCopy full SHA for 29b0a7b
reference/src/layout/unions.md
@@ -61,16 +61,6 @@ assert_eq!(size_of::<U>(), 2);
61
> unlike structs there is no "between the fields" that could be filled
62
> with padding.
63
64
-The bit `i` of a `repr(C)` union is a padding bit if the bit `i` of each of its
65
-fields is a padding bit or trailing padding. That is:
66
-
67
-```rust
68
-#[repr(C)]
69
-union U { x: (u8, u16) }
70
-```
71
72
-The byte at offset 1 of `U` is a padding byte.
73
74
#### Zero-sized fields
75
76
If a `#[repr(C)]` union contains a field of zero-size, that field does not
0 commit comments