mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			171 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			171 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // 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);
 | |
| }
 | 
