rust/tests/ui/proc-macro/signature.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
437 B
Plaintext
Raw Normal View History

error: derive proc macro has incorrect signature
2018-12-25 15:56:47 +00:00
--> $DIR/signature.rs:10:1
2017-12-10 21:00:10 +00:00
|
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`
2017-12-10 21:00:10 +00:00
error: aborting due to previous error
2017-12-10 21:00:10 +00:00