ICE Error: Query stack overflow during type-checking of generic constant expression #115555
Labels
C-bug
Category: This is a bug.
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-incomplete-features
This issue requires the use of incomplete features.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
When compiling the following Rust code without enabling the
generic_const_exprs feature
flag, it doesn't trigger an ICE :The provided Rust code triggers an ICE (Internal Compiler Error) during the type-checking of a generic constant expression. The error message indicates a query stack overflow, which occurs when the compiler's query mechanism encounters a recursion or excessive depth.
Meta
rustc --version --verbose
:what's more, The above code also triggers an ICE error on rustc stable 1.72.
Error output
Backtrace
The text was updated successfully, but these errors were encountered: