Attempt to continue a labeled loop from within async block panics compiler #73704
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Description
I found the following compiler bug when attempting to
continue
a tagged loop from within an async block. In Coc I get a warning instead of an error for this. And when I try to compile the compiler panics. I tried on nightly as well and it seems to give the same error. If I change thecontinue
to abreak
I geterror `break` to unknown label
as expected.Code
Meta
rustc --version --verbose
:rustup run nightly rustc --version --verbose
Error output
Backtrace
The text was updated successfully, but these errors were encountered: