-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Open
Labels
A-reprArea: the `#[repr(stuff)]` attributeArea: the `#[repr(stuff)]` attributeT-langRelevant to the language teamRelevant to the language team
Description
rust-lang/unsafe-code-guidelines#337 pointed out that the following code compiles:
enum Never {}
#[repr(transparent)]
struct Foo(u32, Never);Does that make sense? Should we change the rule here, either retroactively or in a new edition?
Metadata
Metadata
Assignees
Labels
A-reprArea: the `#[repr(stuff)]` attributeArea: the `#[repr(stuff)]` attributeT-langRelevant to the language teamRelevant to the language team