diff --git a/substrate/frame/benchmarking/src/lib.rs b/substrate/frame/benchmarking/src/lib.rs index fd9245d18f..e5a8bb51a2 100644 --- a/substrate/frame/benchmarking/src/lib.rs +++ b/substrate/frame/benchmarking/src/lib.rs @@ -199,12 +199,12 @@ macro_rules! benchmarks_iter { { $( $where_clause:tt )* } ( $( $names:tt )* ) ( $( $names_extra:tt )* ) - where_clause { where $( $where_ty:ty: $where_bound:path ),* $(,)? } + where_clause { where $( $where_bound:tt )* } $( $rest:tt )* ) => { $crate::benchmarks_iter! { { $( $instance)? } - { $( $where_ty: $where_bound ),* } + { $( $where_bound )* } ( $( $names )* ) ( $( $names_extra )* ) $( $rest )* diff --git a/substrate/frame/benchmarking/src/tests.rs b/substrate/frame/benchmarking/src/tests.rs index 53093fdf06..8431f3e46c 100644 --- a/substrate/frame/benchmarking/src/tests.rs +++ b/substrate/frame/benchmarking/src/tests.rs @@ -138,7 +138,8 @@ mod benchmarks { crate::benchmarks!{ where_clause { where - ::OtherEvent: Into<::Event> + ::OtherEvent: Into<::Event> + Clone, + ::Event: Clone, } set_value {