ICE when calling member function of const generic struct with associated constant as const parameter #80561
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.
I have recently been toying with const generics again and they are in a signifficantly better state than when I last used them.
Code
No special flags necessary to compile
This ICE stops occurring once you move new() out of the impl block. It happens regardless of the positioning of the zero() function.
Meta
rustc --version --verbose
:also occurs on rust playground and older nightlies
Error output
Backtrace
The text was updated successfully, but these errors were encountered: