2 #![feature(const_generics)]
3 #![allow(incomplete_features)]
6 let array/*: [_; _]*/ = default_array();
12 let array/*: [_; _]*/ = default_array();
14 let _: [_; 4] = array;
21 impl Foo for [i32; 4] {}
22 impl Foo for [i64; 8] {}
24 // Only needed because `[_; _]` is not valid type syntax.
25 fn default_array<T, const N: usize>() -> [T; N]