inclide fn ident to err message

This commit is contained in:
Nikolay Kim 2019-11-26 10:04:46 +06:00
parent 2cf140a869
commit 4546774f4e
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ pub fn test(_: TokenStream, item: TokenStream) -> TokenStream {
if input.sig.asyncness.is_none() {
return syn::Error::new_spanned(
input.sig.fn_token,
format!("only async fn is supported, {:?}", input.sig.fn_token),
format!("only async fn is supported, {:?}", input.sig.ident),
)
.to_compile_error()
.into();