You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Until now I had the impression that it would be undefined how this construct would behave. The Rustonomicon implies that this is still the case, as tuple-structs are just like “named tuples”. On the other hand, the reference implies that it should be safe to use #[repr(C)] since tuple structs behave like normal structs with anonymous fields.
I would appreciate if this would be clarified in the docs. If it is still undefined behavior #[repr(C)] on a tuple struct should cause an compiler error.