rust/tests/ui/array-slice-vec/repeated-vector-syntax.rs
2023-01-11 09:32:08 +00:00

14 lines
213 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[..]);
}