Hacker News new | ask | show | jobs
by xeubie 15 days ago
You missed the point as well. You can't define a union type in Rust that is backed by a custom enum type. In rust it's a single conflated type. I can't make a Person enum that is backed by a PersonKind. I don't know how else to describe this. I'm not sure how else to explain this.
1 comments

Code snippet you think should compile but doesn't, or vice versa.