Hacker News new | ask | show | jobs
by bbatha 3075 days ago
Wouldn't you need to make `Foo` a union for this to be defined anyway?
1 comments

Rust `#[repr(C)]` is about representation in memory and function call ABI for the type. C rules about casting through union are not relevant to Rust code.