]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/signature.rs
Rollup merge of #106766 - GuillaumeGomez:rm-stripper-dead-code, r=notriddle
[rust.git] / tests / ui / proc-macro / signature.rs
1 // force-host
2 // no-prefer-dynamic
3
4 #![crate_type = "proc-macro"]
5 #![allow(warnings)]
6
7 extern crate proc_macro;
8
9 #[proc_macro_derive(A)]
10 pub unsafe extern "C" fn foo(a: i32, b: u32) -> u32 {
11     //~^ ERROR: expected a `Fn<(proc_macro::TokenStream,)>` closure, found `unsafe extern "C" fn
12     loop {}
13 }