We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
&..
fn main() { &..; }
<anon>:1:14: 1:16 error: unexpected token: `..` <anon>:1 fn main() { &..; } ^~
This may be on purpose, but if not, this is useful for passing .. into generic APIs that take references.
..
The text was updated successfully, but these errors were encountered:
parser-lalr accepts &..; well: (ExprAddrOf (ExprRange <none> <none>)), so at least one of them is buggy.
&..;
(ExprAddrOf (ExprRange <none> <none>))
Sorry, something went wrong.
This is intentional in rustc. .. is only accepted as expression in locations where a..b would also be accepted.
a..b
That is, because the parentheses in &(a..b) are required, they are also required in &(..).
&(a..b)
&(..)
Seems like expected behavior to me.
No branches or pull requests
This may be on purpose, but if not, this is useful for passing
..
into generic APIs that take references.The text was updated successfully, but these errors were encountered: