One can put repr(align) into repr(packed) with generics #83672
Labels
A-layout
Area: Memory layout of types
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
Usually, one cannot put
repr(align)
fields intorepr(packed)
structs:However, this check can be circumvented using generics:
I don't know why this restriction exists in the first place, but I think we have one of two situations here:
Cc @eddyb @nagisa
The text was updated successfully, but these errors were encountered: