mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			298 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			298 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ check-pass
 | |
| //@ proc-macro: test-macros.rs
 | |
| //@ aux-build:derive-helper-shadowed-2.rs
 | |
| 
 | |
| #[macro_use]
 | |
| extern crate test_macros;
 | |
| #[macro_use(empty_helper)]
 | |
| extern crate derive_helper_shadowed_2;
 | |
| 
 | |
| macro_rules! empty_helper { () => () }
 | |
| 
 | |
| #[derive(Empty)]
 | |
| #[empty_helper] // OK
 | |
| struct S;
 | |
| 
 | |
| fn main() {}
 | 
