4 #![cfg_attr(full, feature(const_generics))]
5 #![cfg_attr(full, allow(incomplete_features))]
8 let array/*: [_; _]*/ = default_array();
14 let array/*: [_; _]*/ = default_array();
16 let _: [_; 4] = array;
23 impl Foo for [i32; 4] {}
24 impl Foo for [i64; 8] {}
26 // Only needed because `[_; _]` is not valid type syntax.
27 fn default_array<T, const N: usize>() -> [T; N]