2023-03-14 18:43:37 +00:00
|
|
|
error: function-like proc macro has incorrect signature
|
2023-01-19 15:31:50 +00:00
|
|
|
--> $DIR/proc-macro-abi.rs:11:1
|
2023-01-03 13:08:20 +00:00
|
|
|
|
|
|
|
|
LL | pub extern "C" fn abi(a: TokenStream) -> TokenStream {
|
2023-03-14 18:43:37 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected "Rust" fn, found "C" fn
|
|
|
|
|
|
|
|
|
= note: expected signature `fn(proc_macro::TokenStream) -> proc_macro::TokenStream`
|
|
|
|
found signature `extern "C" fn(proc_macro::TokenStream) -> proc_macro::TokenStream`
|
2023-01-03 13:08:20 +00:00
|
|
|
|
2023-03-14 18:43:37 +00:00
|
|
|
error: function-like proc macro has incorrect signature
|
2023-01-19 15:31:50 +00:00
|
|
|
--> $DIR/proc-macro-abi.rs:17:1
|
2023-01-03 13:08:20 +00:00
|
|
|
|
|
|
|
|
LL | pub extern "system" fn abi2(a: TokenStream) -> TokenStream {
|
2023-03-14 18:43:37 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected "Rust" fn, found "system" fn
|
|
|
|
|
|
|
|
|
= note: expected signature `fn(proc_macro::TokenStream) -> proc_macro::TokenStream`
|
|
|
|
found signature `extern "system" fn(proc_macro::TokenStream) -> proc_macro::TokenStream`
|
2023-01-03 13:08:20 +00:00
|
|
|
|
2023-03-14 18:43:37 +00:00
|
|
|
error: function-like proc macro has incorrect signature
|
2023-01-19 15:31:50 +00:00
|
|
|
--> $DIR/proc-macro-abi.rs:23:1
|
2023-01-03 13:08:20 +00:00
|
|
|
|
|
|
|
|
LL | pub extern fn abi3(a: TokenStream) -> TokenStream {
|
2023-03-14 18:43:37 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected "Rust" fn, found "C" fn
|
|
|
|
|
|
|
|
|
= note: expected signature `fn(proc_macro::TokenStream) -> proc_macro::TokenStream`
|
|
|
|
found signature `extern "C" fn(proc_macro::TokenStream) -> proc_macro::TokenStream`
|
2023-01-03 13:08:20 +00:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|