diff --git a/packages/macro-rs/macros-impl/src/util/tester.rs b/packages/macro-rs/macros-impl/src/util/tester.rs index 2762f3d4fc..717ed5fb19 100644 --- a/packages/macro-rs/macros-impl/src/util/tester.rs +++ b/packages/macro-rs/macros-impl/src/util/tester.rs @@ -77,7 +77,8 @@ macro_rules! macro_doctest { /// } /// } /// ``` -#[macro_export] macro_rules! macro_unit_tests { +#[macro_export] +macro_rules! macro_unit_tests { (@test $macro_name:ident($attr:ident, $item:ident) becomes $expanded:ident) => { assert_eq!( ::std::format!("{}", $macro_name($attr, $item)),