summaryrefslogtreecommitdiffstats
path: root/tests/ui/array-slice-vec/repeated-vector-syntax.rs
blob: 4458eb06dd5f3849f22fcfa51a12bf888d77b25c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// run-pass

pub fn main() {
    let x = [ [true]; 512 ];
    let y = [ 0; 1 ];

    print!("[");
    for xi in &x[..] {
        print!("{:?}, ", &xi[..]);
    }
    println!("]");
    println!("{:?}", &y[..]);
}