2019-06-05 19:55:57 -05:00
|
|
|
// run-pass
|
|
|
|
|
2019-09-01 16:30:19 -05:00
|
|
|
#![allow(dead_code)]
|
|
|
|
|
2019-06-05 19:55:57 -05:00
|
|
|
struct ArrayStruct<T, const N: usize> {
|
|
|
|
data: [T; N],
|
|
|
|
}
|
|
|
|
|
|
|
|
struct ArrayTuple<T, const N: usize>([T; N]);
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _ = ArrayStruct { data: [0u32; 8] };
|
|
|
|
let _ = ArrayTuple([0u32; 8]);
|
|
|
|
}
|