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