mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			217 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			217 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // Test that a `limit` of 0 is valid
 | |
| 
 | |
| #![recursion_limit = "0"]
 | |
| 
 | |
| macro_rules! test {
 | |
|     () => {};
 | |
|     ($tt:tt) => { test!(); };
 | |
| }
 | |
| 
 | |
| test!(test); //~ ERROR recursion limit reached while expanding `test!`
 | |
| 
 | |
| fn main() {}
 | 
