-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heterogeneous comparisons for Option #917
Comments
For some reason after this change |
Default type parameters do not currently drive inference, iirc. |
There is an issue open for generalizing comparison across all types in cc rust-lang/rust#20927 as well. |
Potentially leads to widespread type inference regressions, when |
Closing in favor of more general rust-lang/rust#20063. |
It would be useful to be able to compare
Option<T>
withOption<U>
ifT
andU
are comparable themselves. I.e.Heterogeneous comparisons for
Option
are clear and unambiguous and there are precedents - some other basic library types, likeVec
or[T]
support heterogeneous comparisons too.cc @aturon
cc rust-lang/rust#22838
The text was updated successfully, but these errors were encountered: