Const generics: Bounds like T: Foo<{ value }>
don't work
#71986
Labels
A-const-generics
Area: const generics (parameters and arguments)
A-lazy-normalization
Area: Lazy normalization (tracking issue: #60471)
C-bug
Category: This is a bug.
F-const_generics
`#![feature(const_generics)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This is probably due to lazy normalization not being here yet, but I don't find any issues for this specifically so maybe this is a good additional test case for #71973 or a later PR?
I wouldn't even expect this to work necessarily, since the equivalent thing with an associated constant instead of a const generic argument produces
cannot constrain an associated constant to a value
(although without an error code 🙁).The text was updated successfully, but these errors were encountered: