mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			281 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			281 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #![feature(generic_const_exprs)]
 | |
| #![feature(adt_const_params)]
 | |
| #![allow(incomplete_features)]
 | |
| #![allow(dead_code)]
 | |
| 
 | |
| #[derive(PartialEq, Eq)]
 | |
| struct U;
 | |
| 
 | |
| struct S<const N: U>()
 | |
| where
 | |
|     S<{ U }>:;
 | |
| //~^ ERROR: overflow evaluating the requirement `S<{ U }> well-formed`
 | |
| 
 | |
| fn main() {}
 | 
