mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			229 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			229 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ build-fail
 | |
| 
 | |
| #![feature(generic_const_items)]
 | |
| #![allow(incomplete_features)]
 | |
| #![recursion_limit = "15"]
 | |
| 
 | |
| const RECUR<T>: () = RECUR::<(T,)>;
 | |
| 
 | |
| fn main() {
 | |
|     let _ = RECUR::<()>; //~ ERROR: queries overflow the depth limit!
 | |
| }
 | 
