mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			206 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			206 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ revisions:rpass1
 | |
| pub struct Foo<T, const N: usize>([T; 0]);
 | |
| 
 | |
| impl<T, const N: usize> Foo<T, {N}> {
 | |
|     pub fn new() -> Self {
 | |
|         Foo([])
 | |
|     }
 | |
| }
 | |
| 
 | |
| fn main() {
 | |
|     let _: Foo<u32, 0> = Foo::new();
 | |
| }
 | 
