mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			266 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			266 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #![feature(generic_const_exprs)]
 | |
| #![allow(incomplete_features)]
 | |
| 
 | |
| pub trait Enumerable {
 | |
|     const N: usize;
 | |
| }
 | |
| 
 | |
| #[derive(Clone)]
 | |
| pub struct SymmetricGroup<S>
 | |
| where
 | |
|     S: Enumerable,
 | |
|     [(); S::N]: Sized,
 | |
| {
 | |
|     _phantom: std::marker::PhantomData<S>,
 | |
| }
 | |
| 
 | |
| fn main() {}
 | 
