Const generics, the trait bound is not satisfied #68385
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)]`
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.
I would expect the following code to work with different const values just as it does with different types:
However it fails with:
If implemented with only one value, the compiler infers it correctly (universal function call still doesn't work however), also adding brackets anywhere makes no difference.
The text was updated successfully, but these errors were encountered: