1 2 3 4 5 6 7
type N = u32; struct Foo<const M: usize>; fn test<const N: usize>() -> Foo<N> { //~ ERROR type provided when Foo } fn main() {}