Let-else not checking for curly brace of inline const before else
#118859
Labels
A-parser
Area: The parsing of Rust source code to an AST
C-bug
Category: This is a bug.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
F-inline_const
Inline constants (aka: const blocks, const expressions, anonymous constants)
F-let_else
Issues related to let-else statements (RFC 3137)
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I believe the intention in let-else is that this code should be considered syntactically invalid, but it compiles successfully today.
If you replace
const
withunsafe
, it correctly fails to parse.The text was updated successfully, but these errors were encountered: