Closed Sean1708 closed 8 years ago
Currently you can't have #[repr(C)] univariant enums like the following:
#[repr(C)]
#[repr(C)] enum Foo { Bar, }
The error message is rather cryptic because we automatically add #[repr(C)] (so it isn't shown in the error message), should we warn about this?
Similarly for zero-element enum.
Closed by fc4dba1a02bbb2373f515d819618fa0aff8fe769.
Currently you can't have
#[repr(C)]
univariant enums like the following:The error message is rather cryptic because we automatically add
#[repr(C)]
(so it isn't shown in the error message), should we warn about this?