mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			417 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			417 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//@ check-pass
 | 
						|
//@ compile-flags: -Z span-debug
 | 
						|
//@ proc-macro: nonterminal-recollect-attr.rs
 | 
						|
 | 
						|
#![no_std] // Don't load unnecessary hygiene information from std
 | 
						|
extern crate std;
 | 
						|
 | 
						|
extern crate nonterminal_recollect_attr;
 | 
						|
use nonterminal_recollect_attr::*;
 | 
						|
 | 
						|
macro_rules! my_macro {
 | 
						|
    ($v:ident) => {
 | 
						|
        #[first_attr]
 | 
						|
        $v struct Foo {
 | 
						|
            field: u8
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
my_macro!(pub);
 | 
						|
fn main() {}
 |