You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main reason I want this is because it will allow people to match on enums while eliding variants that have been "deleted" using !. For example, people should be allowed to match on Result<T, !> with
match result {
Ok(x) => x,
}
Currently, they have to do
match result {
Ok(x) => x,
Err(e) => e,
}
Which is confusing because it looks like they're matching on a Result<T, T>.
If I define the following types
I can pattern match on them like this
But if I put them inside something (not just a tuple), I can no longer match the empty case
This is inconsistent.
The text was updated successfully, but these errors were encountered: