Panic in nightly rustc with type interference for const_generics #82034
Labels
A-const-generics
Area: const generics (parameters and arguments)
C-bug
Category: This is a bug.
F-const_generics
`#![feature(const_generics)]`
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Reproduces in playground
Meta
rustc --version --verbose
:Error output
Backtrace
Description
Caught this error while playing with const generics.
After some experiments I concluded error caused by type inference for
SliceConstWriter::convert
methodError very elusive. Even replacing test block with main function "fixed" it
The text was updated successfully, but these errors were encountered: