Hacker News new | ask | show | jobs
by IshKebab 1609 days ago
Rust can't do your second example yet either. Enum variants are not distinct types. It's a commonly requested feature though so hopefully soon...