Skip to content

Commit 219a584

Browse files
committed
add #[repr(C)] to the union
1 parent d1c0e4d commit 219a584

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

reference/src/layout/enums.md

+1
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)