mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			265 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			265 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//@ force-host
 | 
						|
//@ no-prefer-dynamic
 | 
						|
 | 
						|
#![crate_type = "proc-macro"]
 | 
						|
#![allow(warnings)]
 | 
						|
 | 
						|
extern crate proc_macro;
 | 
						|
 | 
						|
#[proc_macro_derive(A)]
 | 
						|
pub unsafe extern "C" fn foo(a: i32, b: u32) -> u32 {
 | 
						|
    //~^ ERROR: derive proc macro has incorrect signature
 | 
						|
    loop {}
 | 
						|
}
 |