-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Parser confuses double-borrowed &&type/&&expr with ANDAND token. #7837
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
Comments
here's another good one. this parses:
this doesn't:
|
It should be straightforward enough to treat |
I've had it come up in a practical context trying to cast a string literal to a trait object:
|
I've also had it come up with hash maps and strings: |
This is really annoying. |
The only mentioned use case is for string literals, and #10105 would get rid of that problem. |
On Mon, Apr 07, 2014 at 11:07:23AM -0700, Corey Richardson wrote:
Yes, it is. |
I believe this is fixed by #13576 and should be closed. |
These two programs compile only if you put a space between the two ampersands:
The text was updated successfully, but these errors were encountered: