mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			214 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			214 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ run-pass
 | |
| 
 | |
| #![allow(dead_code)]
 | |
| //@ proc-macro: derive-nothing.rs
 | |
| 
 | |
| #[macro_use]
 | |
| extern crate derive_nothing;
 | |
| 
 | |
| macro_rules! int {
 | |
|     () => { i32 }
 | |
| }
 | |
| 
 | |
| #[derive(Nothing)]
 | |
| struct S {
 | |
|     x: int!(),
 | |
| }
 | |
| 
 | |
| fn main() {}
 | 
