Parse error on labeled loop after break #86948
Labels
A-parser
Area: The lexing & 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.
While playing with labels in Rust, I noticed that labeled loops can be used as expressions, but aren't parsed correctly after
break
:Output:
This only happens when the label comes immediately after
break
, so this does compile:Meta
rustc --version --verbose
:(The same thing happened on all the platforms and versions I have tried.)
The text was updated successfully, but these errors were encountered: