diff --git a/core/codegen/src/attribute/async_bound/mod.rs b/core/codegen/src/attribute/async_bound/mod.rs index d58f0afe9f..728f199a01 100644 --- a/core/codegen/src/attribute/async_bound/mod.rs +++ b/core/codegen/src/attribute/async_bound/mod.rs @@ -37,7 +37,9 @@ fn _async_bound( ReturnType::Type(arrow, ty) => parse_quote_spanned!(ty.span() => #arrow impl ::core::future::Future + #bounds ), - default@ReturnType::Default => default + default@ReturnType::Default => parse_quote_spanned!(default.span() => + -> impl ::core::future::Future + #bounds + ), }; Ok(quote! {