diff --git a/actix-macros/src/lib.rs b/actix-macros/src/lib.rs index 884958f6..ea160925 100644 --- a/actix-macros/src/lib.rs +++ b/actix-macros/src/lib.rs @@ -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();