ICE: error with const in 2021 closure capture #87988
Labels
A-closures
Area: Closures (`|…| { … }`)
A-edition-2021
Area: The 2021 edition
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.
The following ICE was found migrating
rusb
0.8.1 to 2021. I believe it (or something similar) was found inobject
0.26.0 andcurl
0.4.38.cc #87426 which was an error on the same line, though I think the cause is slightly different.
Note that I think this is also triggering an incorrect
unsued
lint for theevent
parameter (the actual code uses the parameter).Code
Meta
rustc --version --verbose
:Error output
Backtrace
cc @rust-lang/wg-rfc-2229
The text was updated successfully, but these errors were encountered: