diff --git a/rstest_macros/src/render/mod.rs b/rstest_macros/src/render/mod.rs index c293e407..ef335891 100644 --- a/rstest_macros/src/render/mod.rs +++ b/rstest_macros/src/render/mod.rs @@ -193,9 +193,9 @@ fn resolve_default_test_attr(is_async: bool) -> TokenStream { fn render_exec_call(fn_path: Path, args: &[Ident], is_async: bool) -> TokenStream { if is_async { - quote! {#fn_path(#(#args),*).await} + quote! {super::#fn_path(#(#args),*).await} } else { - quote! {#fn_path(#(#args),*)} + quote! {super::#fn_path(#(#args),*)} } }