Add a test for #2487

This commit is contained in:
topecongiro 2018-02-24 11:48:07 +09:00
parent eea5dcac46
commit 0f706cd452
2 changed files with 8 additions and 0 deletions

View File

@ -336,3 +336,7 @@ fn foo() {
macro lex_err($kind: ident $(, $body: expr)*) {
Err(QlError::LexError(LexError::$kind($($body,)*)))
}
// Preserve trailing comma on item-level macro with `()` or `[]`.
methods![ get, post, delete, ];
methods!( get, post, delete, );

View File

@ -911,3 +911,7 @@ fn foo() {
macro lex_err($kind: ident $(, $body: expr)*) {
Err(QlError::LexError(LexError::$kind($($body,)*)))
}
// Preserve trailing comma on item-level macro with `()` or `[]`.
methods![get, post, delete,];
methods!(get, post, delete,);