mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			276 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			276 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ run-rustfix
 | |
| 
 | |
| #![allow(unused_macros)]
 | |
| 
 | |
| macro_rules foo {
 | |
|     //~^ ERROR expected `!` after `macro_rules`
 | |
|     () => {};
 | |
| }
 | |
| 
 | |
| macro_rules bar! {
 | |
|     //~^ ERROR expected `!` after `macro_rules`
 | |
|     //~^^ ERROR macro names aren't followed by a `!`
 | |
|     () => {};
 | |
| }
 | |
| 
 | |
| fn main() {}
 | 
