blob: 2302238253e82e172cf2a6ab068a2b5bdbdb3643 (
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: expected a `Fn<(proc_macro::TokenStream,)>` closure, found `unsafe extern "C" fn
loop {}
}
|