mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			279 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			279 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ run-pass
 | |
| 
 | |
| #[allow(unreachable_patterns)]
 | |
| fn main() {
 | |
|     // Test that we don't naively sort the two `2`s together and confuse the failure paths.
 | |
|     match (1, true) {
 | |
|         (1 | 2, false | false) => unreachable!(),
 | |
|         (2, _) => unreachable!(),
 | |
|         _ => {}
 | |
|     }
 | |
| }
 | 
