rustc panics when analyzing closure in error condition (E0593) #128470
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.
I found a bug in
rustc
when trying to compile the errornous program below.The compiler does not crash anymore once I do one of the following:
rustc
(the program won't compile then either due to a follow-up mistake, but rustc won't crash anymore)impl
without using thetrait
Please note that the code as it is psoted here does not make much sense, especially the
.enumerate().map()
part, which looks like a no-op (if it were written correctly). The code was redruced to be as niminal as possible.Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: