From 8c631ebfeeed9b2338b3f4a280f6679c527f487b Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 5 Sep 2025 19:45:18 -0700 Subject: [PATCH] langref: update for new packed union rules --- doc/langref.html.in | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/langref.html.in b/doc/langref.html.in index 9e2659d977..cfd1554634 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -2496,6 +2496,7 @@ or {#header_open|packed union#}

A {#syntax#}packed union{#endsyntax#} has well-defined in-memory layout and is eligible to be in a {#link|packed struct#}.

+

All fields in a packed union must have the same {#link|@bitSizeOf#}.

{#header_close#} {#header_open|Anonymous Union Literals#}