-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
syntax: Apply x as usize < y
recovery to type ascription as well
#43060
Conversation
src/test/ui/issue-22644.stderr
Outdated
| ^--------------------- | ||
| | | ||
| interpreted as generic arguments | ||
| not interpreted as comparison |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will look at the code this afternoon to see what change would be needed for this suggestion to be implemented, but I feel the output should be:
|
20 | println!("{}{}", a: usize < long_name, long_name);
| ^ -------------------- interpreted as generic arguments
| |
| not interpreted as comparison
@estebank |
@bors r+ |
📌 Commit 0e10bd8 has been approved by |
☔ The latest upstream changes (presumably #42904) made this pull request unmergeable. Please resolve the merge conflicts. |
Rebased. |
📌 Commit 4323877 has been approved by |
syntax: Apply `x as usize < y` recovery to type ascription as well Also correct spans, add some comments. r? @estebank
☀️ Test successful - status-appveyor, status-travis |
Also correct spans, add some comments.
r? @estebank