ch as u32 < 0x80
syntax misinterpreted as a type parameter
#20078
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The parsing of Rust source code to an AST
Code like this:
Gives a parse error:
Adding parentheses to disambiguate works around the issue:
I understand that
u32
is being parsed as a type and so<
is assumed to be the start of type parameters. But maybe when that fails, the parser should backtrack and try to parse<
as an operator?The text was updated successfully, but these errors were encountered: