Add a test for #2487
This commit is contained in:
parent
eea5dcac46
commit
0f706cd452
@ -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, );
|
||||
|
@ -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,);
|
||||
|
Loading…
Reference in New Issue
Block a user