Compiler misinterprets cast and comparison as generic syntax #140235
Labels
C-discussion
Category: Discussion or questions that doesn't represent real issues.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to compile successfully, just like the following code:
Instead, this happened: compile fail
I suspect that the compiler is interpreting the code as if I had written something like
usize::<1>
.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: