mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
langref: update for new packed union rules
This commit is contained in:
parent
b074299124
commit
8c631ebfee
@ -2496,6 +2496,7 @@ or
|
|||||||
{#header_open|packed union#}
|
{#header_open|packed union#}
|
||||||
<p>A {#syntax#}packed union{#endsyntax#} has well-defined in-memory layout and is eligible
|
<p>A {#syntax#}packed union{#endsyntax#} has well-defined in-memory layout and is eligible
|
||||||
to be in a {#link|packed struct#}.</p>
|
to be in a {#link|packed struct#}.</p>
|
||||||
|
<p>All fields in a packed union must have the same {#link|@bitSizeOf#}.</p>
|
||||||
{#header_close#}
|
{#header_close#}
|
||||||
|
|
||||||
{#header_open|Anonymous Union Literals#}
|
{#header_open|Anonymous Union Literals#}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user