Lifetimes are parsed without errors when they occur in most ExpressionWithBlock
s in front of the contained block expression
#103983
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.
I tried this code playground:
I expected to see this happen: The compiler rejects all these expressions as the lifetimes are in a nonsensical position.
Instead, this happened: The compiler accepted the expressions without saying anything
Meta
This behavior seems to occur since 1.61.
1.60 and below properly reject the code.
The text was updated successfully, but these errors were encountered: