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