Unary operator applied to range fails to parse #134899
Labels
A-parser
Area: The parsing of Rust source code to an AST
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
With the exception of
*..0
, all of the above expressions parse successfully, so..
is definitely allowed to appear at the beginning of an expression — including an expression with higher precedence such as binary+
and unary&
. I think it is a bug that*..0
does not parse. Same for-..0
and!..0
.The text was updated successfully, but these errors were encountered: