summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/signature.rs
blob: 7b4982a6178f903ae86417f13cf0bd34efcda1dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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 {}
}