summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/signature.stderr
blob: 2a53145a6436f2ba86c0163c429f77e8d8bcf49d (plain)
1
2
3
4
5
6
7
8
9
10
11
error: derive proc macro has incorrect signature
  --> $DIR/signature.rs:10:1
   |
LL | pub unsafe extern "C" fn foo(a: i32, b: u32) -> u32 {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected normal fn, found unsafe fn
   |
   = note: expected signature `fn(proc_macro::TokenStream) -> proc_macro::TokenStream`
              found signature `unsafe extern "C" fn(i32, u32) -> u32`

error: aborting due to 1 previous error