mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			332 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			332 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // check-pass
 | |
| //
 | |
| // Ensures that we properly lint
 | |
| // a removed 'expression' resulting from a macro
 | |
| // in trailing expression position
 | |
| 
 | |
| macro_rules! expand_it {
 | |
|     () => {
 | |
|         #[cfg(FALSE)] 25; //~  WARN trailing semicolon in macro
 | |
|                           //~| WARN this was previously
 | |
|     }
 | |
| }
 | |
| 
 | |
| fn main() {
 | |
|     expand_it!()
 | |
| }
 | 
