Parser accepts negative lifetime bounds and interprets as positive bound #67146
Labels
A-frontend
Area: Compiler frontend (errors, parsing and HIR)
A-parser
Area: The parsing of Rust source code to an AST
C-bug
Category: This is a bug.
P-high
High priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following is accepted by the parser:
and the
!
is just silently dropped thus interpreting the constraint asT: 'static
.Regression introduced in #57364 on Feb 24.
cc @estebank @hdhoang
I discovered this while working on a refactoring of
parser/ty.rs
.I will fix the issue as part of that refactoring.
The text was updated successfully, but these errors were encountered: