summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/proc-macro-abi.stderr
blob: ccc72e5187ed3f9045cf0283bcf159fa3dacd089 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
error: function-like proc macro has incorrect signature
  --> $DIR/proc-macro-abi.rs:11:1
   |
LL | pub extern "C" fn abi(a: TokenStream) -> TokenStream {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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`

error: function-like proc macro has incorrect signature
  --> $DIR/proc-macro-abi.rs:17:1
   |
LL | pub extern "system" fn abi2(a: TokenStream) -> TokenStream {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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`

error: function-like proc macro has incorrect signature
  --> $DIR/proc-macro-abi.rs:23:1
   |
LL | pub extern fn abi3(a: TokenStream) -> TokenStream {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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`

error: aborting due to 3 previous errors