[ICE]: Failed to evaluate associated constant from inferred type parameter (Nightly, Generic Const Exprs) #107474
Labels
A-const-generics
Area: const generics (parameters and arguments)
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
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 code crashes on 1.69 with an ICE, while it compiled on 1.68:
The code can be found on the Playground, and is otherwise reproduced here:
As hinted by the comments, manually providing the type is sufficient to make the code compile, though I am not sure if this is a general solution -- it just works in this specific case.
Compiler context:
Full stack trace for the curious
The text was updated successfully, but these errors were encountered: