From 8dc4b7608d6cd5324677b509000d63de13df97fe Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Mon, 16 Nov 2015 12:04:25 -0500 Subject: [PATCH] Nomicon: mention tuple structs with repr(c) Fixes #29526 --- other-reprs.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/other-reprs.md b/other-reprs.md index e361fbb..2639c1d 100644 --- a/other-reprs.md +++ b/other-reprs.md @@ -26,6 +26,9 @@ still consumes a byte of space. * DSTs, tuples, and tagged unions are not a concept in C and as such are never FFI safe. +* Tuple structs are like structs with regards to `repr(C)`, as the only + difference from a struct is that the fields aren’t named. + * **If the type would have any [drop flags], they will still be added** * This is equivalent to one of `repr(u*)` (see the next section) for enums. The