Error: constant expression depends on a generic parameter #73899
Labels
A-const-generics
Area: const generics (parameters and arguments)
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
F-const_generics
`#![feature(const_generics)]`
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
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.
Successor of #61935 and #61383.
This code:
Gives this error message (on nightly):
It'd be great if this could work so that you can implement a trait differently for different values of type parameters.
cc @lcnr who suggested to open a new issue for this.
The text was updated successfully, but these errors were encountered: