disallow alignment on packed union fields

This commit is contained in:
David Rubin
2025-08-01 14:57:06 -07:00
parent 5678a600ff
commit e82d67233b
5 changed files with 16 additions and 12 deletions

View File

@@ -75,4 +75,5 @@ comptime {
// :16:5: error: tuple field name '3' does not match field index 0
// :30:5: error: comptime field without default initialization value
// :44:5: error: extern struct fields cannot be marked comptime
// :58:5: error: alignment in a packed struct field must be set to 0
// :58:5: error: alignment of a packed struct field must be set to 0