mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
15 lines
238 B
Rust
15 lines
238 B
Rust
//@ run-pass
|
|
|
|
#![allow(dead_code)]
|
|
|
|
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]);
|
|
}
|