summaryrefslogtreecommitdiffstats
path: root/tests/ui/array-slice-vec/nested-vec-1.rs
blob: 02a3ccf46f2ea43751ddaac5980d05e5969860cd (plain)
1
2
3
4
5
6
7
8
// run-pass

// Test that using the `vec!` macro nested within itself works

fn main() {
    let nested = vec![vec![1u32, 2u32, 3u32]];
    assert_eq!(nested[0][1], 2);
}