Closed
Description
Should the following code be accepted?
// compiles rn
#![feature(const_generics)]
struct A<T = u32, const N: usize> {
arg: T,
}
type C = A<u32, 7>;
if so, we probably also want to accept the following:
// this currently fails
type B = A<7>;
//~^ ERROR constant provided when a type was expected
Metadata
Metadata
Assignees
Labels
Area: const generics (parameters and arguments)Category: This is a bug.`#![feature(const_generics)]`Relevant to the compiler team, which will review and decide on the PR/issue.Relevant to the language team, which will review and decide on the PR/issue.This issue requires a nightly compiler in some way.