mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			196 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			196 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #![crate_type = "lib"]
 | |
| #![feature(macro_attr)]
 | |
| 
 | |
| macro_rules! attr {
 | |
|     attr() { $($body:tt)* } => {
 | |
|         #[attr] $($body)*
 | |
|     };
 | |
|     //~^^ ERROR: recursion limit reached
 | |
| }
 | |
| 
 | |
| #[attr]
 | |
| struct S;
 | 
