String-based const generics, associated types and where Self clause ICE when implementors are explicitly selected #71348
Labels
A-const-generics
Area: const generics (parameters and arguments)
C-bug
Category: This is a bug.
F-const_generics
`#![feature(const_generics)]`
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.
Hi,
I was playing with
const_generics
and get ICEd. Basically, I was trying to make a “type-level-string-based” getter, by using aconst &'static str
, using a trait and associated type to get. The trait declaration and implementors are okay. However, usage is not, especially when using the trait in awhere Self: _
clause.Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: