From 76137ddc72b5e52270769e97546cbbd634efac8f Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Thu, 25 Jan 2018 14:20:17 +0000 Subject: [PATCH] Add repetition example --- tests/source/macro_rules.rs | 2 +- tests/target/macro_rules.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/source/macro_rules.rs b/tests/source/macro_rules.rs index 08cbfd90480..24d4b669011 100644 --- a/tests/source/macro_rules.rs +++ b/tests/source/macro_rules.rs @@ -1,5 +1,5 @@ macro_rules! m { - ($expr :expr, $func : ident) => { + ($expr :expr, $( $func : ident ) * ) => { { let x = $expr; $func ( diff --git a/tests/target/macro_rules.rs b/tests/target/macro_rules.rs index d5ce0f7309e..5835c27faee 100644 --- a/tests/target/macro_rules.rs +++ b/tests/target/macro_rules.rs @@ -1,5 +1,5 @@ macro_rules! m { - ($expr: expr, $func: ident) => {{ + ($expr: expr, $($func: ident)*) => {{ let x = $expr; $func(x) }};