2 ms·
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...
by IshKebab 5y 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...