If I have an enum annotated with #[repr(i32)]
, then use the Archive
macro on it, I get the following error on all negative enum values:
cannot apply unary operator '-' to type 'u8'
I believe this is due to the Archive macro creating an archived #[repr(u8)]
ArchivedTag
enum. Would love to see support for negative/i32 enums.