Rvalue::Repeat
should hold a ty::Const
#68567
Labels
A-const-generics
Area: const generics (parameters and arguments)
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
F-const_generics
`#![feature(const_generics)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
currently fails with
error: array lengths can't depend on generic parameters
, because we can't tell what concrete valueN
should take here. This is an artificial limitation: when producing aRvalue::Repeat
, we currently need to provide the length of the array, which is impossible at this stage.cc #43408 (comment)
The text was updated successfully, but these errors were encountered: