mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			263 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			263 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| macro_rules! test {
 | |
|     ($wrong:id) => {};
 | |
| } //~^ ERROR: invalid fragment specifier `id`
 | |
| 
 | |
| // guard against breaking raw identifier diagnostic
 | |
| macro_rules! test_raw_identifer {
 | |
|     ($wrong:r#if) => {};
 | |
| } //~^ ERROR: invalid fragment specifier `r#if`
 | |
| 
 | |
| fn main() {}
 | 
