break
inside gen
blocks misidentifies gen block as a closure
#124495
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
F-gen_blocks
`gen {}` expressions that produce `Iterator`s
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.
Code
Current output
Desired output
Rationale and extra context
Same issue as #63391 which was for
async
blocks.Rust Version
The text was updated successfully, but these errors were encountered: