ICE when using struct constructor with explicit const generic arguments #60818
Labels
A-const-generics
Area: const generics (parameters and arguments)
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.
This very simple example (Playground link):
results in:
error: internal compiler error: src/librustc_typeck/collect.rs:1407: unexpected const parent path def Def(Ctor(Struct, Const), DefId(0:13 ~ playground[d52b]::Generic[0]::{{constructor}}[0]))
. Changing it to use curly braces around0
does not help.The text was updated successfully, but these errors were encountered: