Inferring const parameters to wrapper type causes rustc to panic. #92626
Labels
C-bug
Category: This is a bug.
glacier
ICE tracked in rust-lang/glacier.
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.
Code
Playground link
Removing the const generic parameter
N
or annotatingout
insidetest
with an explicit type (e.g.let mut out: Test<u64, 16> = Test::default();
) avoids the compiler panic.Meta
Reproduces on stable, beta, and the nightly version available on the Playground. Backtrace and error output information are copied from Playground output.
Error output
Backtrace
The text was updated successfully, but these errors were encountered: