Skip to content

Rule: Internal type embedded by value

Canonical rule slug: detail-embedded-by-value. ← back to all rules

A public type holds an internal type by value, so the internal type's size becomes part of the public ABI.

Canonical demonstration