mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			262 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			262 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #![feature(macro_metavar_expr)]
 | |
| 
 | |
| macro_rules! metavar {
 | |
|     ( $i:expr ) => {
 | |
|         ${len(0)}
 | |
|         //~^ ERROR meta-variable expression `len` with depth parameter must be called inside of a macro repetition
 | |
|     };
 | |
| }
 | |
| 
 | |
| const _: i32 = metavar!(0);
 | |
| 
 | |
| fn main() {}
 | 
