]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/signature.rs
Rollup merge of #107234 - Rattenkrieg:bootstrap-fix-is_ci_llvm_available, r=albertlar...
[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: mismatched derive proc macro signature
12     //~| mismatched derive proc macro signature
13     //~| mismatched derive proc macro signature
14     //~| proc macro functions may not be `extern
15     //~| proc macro functions may not be `unsafe
16     loop {}
17 }