mirror of
https://github.com/fafhrd91/actix-net
synced 2025-01-18 23:21:50 +01:00
inclide fn ident to err message
This commit is contained in:
parent
2cf140a869
commit
4546774f4e
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user