Skip to content

Rule: Public struct has a private field type

Canonical rule slug: public-struct-private-field-type. ← back to all rules

A public struct holds a field whose type the public headers do not declare, hiding part of a supported type's layout.

Canonical demonstration

Used by scenarios