Additional bounds are required for const generics using associated constants #80976
Labels
A-const-generics
Area: const generics (parameters and arguments)
A-diagnostics
Area: Messages for errors, warnings, and lints
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.
Example below. Based on the description in #76560, I'd expect to not be required to add
[(); From::DIM]:
and[(); To::DIM]
bounds toTransform
because the associated consts are inherent to the trait's definition and thus are public APIs.(Playground)
The text was updated successfully, but these errors were encountered: