18 lines
454 B
Rust
18 lines
454 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: mismatched derive proc macro signature
|
|
//~| mismatched derive proc macro signature
|
|
//~| mismatched derive proc macro signature
|
|
//~| proc macro functions may not be `extern
|
|
//~| proc macro functions may not be `unsafe
|
|
loop {}
|
|
}
|