rust/src/test/ui/array-slice-vec/repeated-vector-syntax.rs
2019-07-27 18:56:16 +03: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[..]);
}