// run-pass #![feature(const_generics_defaults)] struct Foo(T); impl Foo { fn new() -> Self { Foo([0; N]) } } fn main() { assert_eq!(Foo::new().0, [0; 10]); }