mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			312 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			312 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// aux-build:first-second.rs
 | 
						|
 | 
						|
extern crate first_second;
 | 
						|
use first_second::*;
 | 
						|
 | 
						|
macro_rules! produce_it {
 | 
						|
    ($name:ident) => {
 | 
						|
        #[first]
 | 
						|
        struct $name {
 | 
						|
            field: MissingType //~ ERROR cannot find type
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
produce_it!(MyName);
 | 
						|
 | 
						|
fn main() {
 | 
						|
    println!("Hello, world!");
 | 
						|
}
 |