Skip to content

Commit ffe8aa6

Browse files
committed
add #[repr(C)] to the union
1 parent f3476a2 commit ffe8aa6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

reference/src/representation/enums.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ This will be laid out equivalently to the following more
180180
complex Rust types:
181181

182182
```
183+
#[repr(C)]
183184
union TwoCasesRepr {
184185
A: TwoCasesVariantA,
185186
B: TwoCasesVariantB,

0 commit comments

Comments
 (0)