Const generics unconstrained generics #68366
Labels
A-const-generics
Area: const generics (parameters and arguments)
C-bug
Category: This is a bug.
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.
The following code does NOT compile:
it errors with:
However, when using normal generics in the places of the const generics, wrapping the
T
in anOption
and sticking that into theCollatz
struct does work:Is it intended that const generic dont mimmic this behaviour?
The text was updated successfully, but these errors were encountered: