]> git.lizzy.rs Git - rust.git/blob - tests/ui/array-slice-vec/nested-vec-1.rs
Rollup merge of #106715 - BoxyUwU:new_solver_triagebot, r=lcnr
[rust.git] / tests / ui / array-slice-vec / nested-vec-1.rs
1 // run-pass
2
3 // Test that using the `vec!` macro nested within itself works
4
5 fn main() {
6     let nested = vec![vec![1u32, 2u32, 3u32]];
7     assert_eq!(nested[0][1], 2);
8 }