]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/proc-macro-abi.stderr
Rollup merge of #106856 - vadorovsky:fix-atomic-annotations, r=joshtriplett
[rust.git] / tests / ui / proc-macro / proc-macro-abi.stderr
1 error: proc macro functions may not be `extern "C"`
2   --> $DIR/proc-macro-abi.rs:11:1
3    |
4 LL | pub extern "C" fn abi(a: TokenStream) -> TokenStream {
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
7 error: proc macro functions may not be `extern "system"`
8   --> $DIR/proc-macro-abi.rs:17:1
9    |
10 LL | pub extern "system" fn abi2(a: TokenStream) -> TokenStream {
11    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: proc macro functions may not be `extern "C"`
14   --> $DIR/proc-macro-abi.rs:23:1
15    |
16 LL | pub extern fn abi3(a: TokenStream) -> TokenStream {
17    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
19 error: aborting due to 3 previous errors
20