Closed
Description
Found an ICE with the following code:
pub struct Foo<const LEN: usize> {
buf: [u8; {LEN * 2}]
}
Results in "no errors encountered even though delay_span_bug
issued" on current nightly.
The ICE still happens regardless of the LEN * 2
being in a block, in parenthesis, or even as a standalone expression. Interestingly, refactoring out the array into a seperate struct solves the issue.
Metadata
Metadata
Assignees
Labels
Area: const generics (parameters and arguments)Area: Lazy normalization (tracking issue: #60471)Category: This is a bug.`#![feature(const_generics)]`Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Relevant to the compiler team, which will review and decide on the PR/issue.ICE tracked in rust-lang/glacier.This issue requires a nightly compiler in some way.