ICE error performing operation: fully_perform
#140123
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
ICE when
const {}
initializing mutable references in[expr; N]
array initializers whereN
is >= 2. Does not happen when setting every element explicitly[expr, expr]
. Interestingly you cannot useconst { &mut[] }
directly and must use a function call to get around it. I will make another issue for that.Related issue: "Compile error when using &mut in explicity const context directly" #140126
Code
Meta
Occurs in version >= 1.83.0. Older versions fail to compile normally due to mutable references in const.
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: