rust/tests/ui/array-slice-vec/repeated-vector-syntax.rs
2024-02-16 20:02:50 +00:00

13 lines
214 B
Rust

//@ run-pass
pub fn main() {
let x = [ [true]; 512 ];
let y = [ 0; 1 ];
print!("[");
for xi in &x[..] {
print!("{:?}, ", &xi[..]);
}
println!("]");
println!("{:?}", &y[..]);
}