mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			364 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			364 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // Regression test for #71297
 | |
| //@ edition:2018
 | |
| 
 | |
| async fn a((x | s): String) {}
 | |
| //~^ ERROR variable `x` is not bound in all patterns
 | |
| //~| ERROR variable `s` is not bound in all patterns
 | |
| 
 | |
| async fn b() {
 | |
|     let (x | s) = String::new();
 | |
|     //~^ ERROR variable `x` is not bound in all patterns
 | |
|     //~| ERROR variable `s` is not bound in all patterns
 | |
| }
 | |
| 
 | |
| fn main() {}
 | 
