]>
Commit | Line | Data |
---|---|---|
353b0b11 | 1 | error: derive proc macro has incorrect signature |
0731742a | 2 | --> $DIR/signature.rs:10:1 |
ff7c6d11 | 3 | | |
9ffffee4 | 4 | LL | pub unsafe extern "C" fn foo(a: i32, b: u32) -> u32 { |
353b0b11 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected normal fn, found unsafe fn |
9ffffee4 | 6 | | |
353b0b11 FG |
7 | = note: expected signature `fn(proc_macro::TokenStream) -> proc_macro::TokenStream` |
8 | found signature `unsafe extern "C" fn(i32, u32) -> u32` | |
ff7c6d11 | 9 | |
4b012472 | 10 | error: aborting due to 1 previous error |
ff7c6d11 | 11 |