diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -11,7 +11,9 @@ macro_rules! mock { self: ($($self_type: tt)+), $($func_param: ident: $func_param_type: ty),* )$( -> $return_type: ty)? - $(where ($($where: tt)*))?; + $(where $( + $where_param: ident: $first_where_param_bound: tt $(+ $where_param_bound: tt)* + ),*)?; )* } ) => { @@ -45,7 +47,9 @@ macro_rules! mock { $($type_param$(: $($type_param_bound +)*)?),* >)?(&mut self) -> &mut [<$mock Expectation _ $func>]$(<$($type_param),*>)? - $(where $($where)*)? + $(where $( + $where_param: $first_where_param_bound $(+ $where_param_bound)* + ),*)? { let ids = vec![ $($($crate::__private::type_id::TypeID::of::<$type_param>()),*)? @@ -71,7 +75,9 @@ macro_rules! mock { self: $($self_type)+, $($func_param: $func_param_type),* )$( -> $return_type)? - $(where $($where)*)? + $(where $( + $where_param: $first_where_param_bound $(+ $where_param_bound)* + ),*)? { let ids = vec![ $($($crate::__private::type_id::TypeID::of::<$type_param>()),*)? |