mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			209 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			209 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ check-pass
 | |
| #![feature(generic_const_exprs)]
 | |
| #![allow(incomplete_features)]
 | |
| 
 | |
| #[derive(Clone)]
 | |
| struct Bar<const A: usize, const B: usize>
 | |
| where
 | |
|     [(); A as usize]:,
 | |
|     [(); B as usize]:,
 | |
| {}
 | |
| 
 | |
| fn main() {}
 | 
