diff --git a/tests/source/macro_rules.rs b/tests/source/macro_rules.rs index 5aaca0c83fa..f480385ae2f 100644 --- a/tests/source/macro_rules.rs +++ b/tests/source/macro_rules.rs @@ -4,6 +4,7 @@ macro_rules! m { () => (); ( $ x : ident ) => (); ( $ m1 : ident , $ m2 : ident , $ x : ident ) => (); + ( $ m1 : ident , $ m2 : ident , $ x : ident , ) => (); ( $($beginning:ident),*;$middle:ident;$($end:ident),* ) => (); ( $($beginning: ident),*; $middle: ident; $($end: ident),*; $($beginning: ident),*; $middle: ident; $($end: ident),* ) => {}; ( $ name : ident ( $ ( $ dol : tt $ var : ident ) * ) $ ( $ body : tt ) * ) => (); diff --git a/tests/target/macro_rules.rs b/tests/target/macro_rules.rs index 5e7512470dc..b19813203d9 100644 --- a/tests/target/macro_rules.rs +++ b/tests/target/macro_rules.rs @@ -4,6 +4,7 @@ macro_rules! m { () => {}; ($x:ident) => {}; ($m1:ident, $m2:ident, $x:ident) => {}; + ($m1:ident, $m2:ident, $x:ident,) => {}; ($($beginning:ident),*; $middle:ident; $($end:ident),*) => {}; ( $($beginning:ident),*;