Skip to content

Commit ca4ab32

Browse files
committed
Nomicon: mention tuple structs with repr(c)
Fixes #29526
1 parent 57c8a3e commit ca4ab32

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/doc/nomicon/other-reprs.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ still consumes a byte of space.
2626
* DSTs, tuples, and tagged unions are not a concept in C and as such are never
2727
FFI safe.
2828

29+
* Tuple structs are like structs with regards to `repr(C)`, as the only
30+
difference from a struct is that the fields aren’t named.
31+
2932
* **If the type would have any [drop flags], they will still be added**
3033

3134
* This is equivalent to one of `repr(u*)` (see the next section) for enums. The

0 commit comments

Comments
 (0)