mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			216 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			216 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // check-pass
 | |
| 
 | |
| #![feature(inline_const_pat)]
 | |
| #![allow(incomplete_features)]
 | |
| 
 | |
| fn main() {
 | |
|     match 1u64 {
 | |
|         0 => (),
 | |
|         const { 0 + 1 } => (),
 | |
|         const { 2 - 1 } ..= const { u64::MAX } => (),
 | |
|     }
 | |
| }
 | 
