Forbid generic parameters in the type of const generic parameters #74152
Labels
A-const-generics
Area: const generics (parameters and arguments)
A-lazy-normalization
Area: Lazy normalization (tracking issue: #60471)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
F-const_generics
`#![feature(const_generics)]`
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.
e.g. do not allow
fn foo<T, const N: T>()
andfoo<const N: usize, const M: [u8; N]>()
.While we may want to support this in the future, this should not be part of the MVP and causes a lot of problems
with our current approach. It causes both ICE ICE baby and breaks
foo<const N: [u8; { 1+ 4 }]>()
because{ 1 + 4 }
containsN
itself in its substitutions.What probably has to done here:
generics_of
.cc @eddyb @varkor @yodaldevoid
The text was updated successfully, but these errors were encountered: