mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			283 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			283 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // Regression test for #135209.
 | |
| // We ensure that we don't try to access fields on a non-struct pattern type.
 | |
| fn main() {
 | |
|     if let <Vec<()> as Iterator>::Item { .. } = 1 {
 | |
|         //~^ ERROR E0658
 | |
|         //~| ERROR E0071
 | |
|         //~| ERROR E0277
 | |
|         x //~ ERROR E0425
 | |
|     }
 | |
| }
 | 
