Error code E0587
A type has both packed
and align
representation hints.
Erroneous code example:
ⓘ
You cannot use packed
and align
hints on a same type. If you want to pack a
type to a given size, you should provide a size to packed:
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
A type has both packed
and align
representation hints.
Erroneous code example:
ⓘ
You cannot use packed
and align
hints on a same type. If you want to pack a
type to a given size, you should provide a size to packed: