Re:Rust 1.50
by pornel on Thursday February 11, 2021 @03:50PM
(#26106957)
Rust enums are not compatible with C, even with `#[repr(C)]`. Values not explicitly present in the enum are not allowed. Casting them to a Rust enum is UB, and it does actually cause miscompilation, because `match` can be a jump table.
[ Parent
| on HN ]
There are no comments on this comment yet.