-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Clarify precedence with ^ in chained comparison #59828
Comments
|
@rustbot claim |
We've lost the nice parentheses suggestion. 🤔 |
Are there any other operators in place of If not, I think |
I guess |
@rustbot release-assignment |
Actual output:
It would be helpful to clarify that
^
has a higher precedence than<
and suggest that the user parenthesises(x < y) ^ (y < z)
, which would result in the correct expected type.The text was updated successfully, but these errors were encountered: