Skip to content

Commit e6423cf

Browse files
i1skntopecongiro
authored andcommitted
Add test #2574 (#2577)
1 parent 73e7235 commit e6423cf

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tests/source/macros.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,11 @@ macro foo() {
335335
}
336336
}
337337

338+
// #2574
339+
macro_rules! test {
340+
() => {{}}
341+
}
342+
338343
macro lex_err($kind: ident $(, $body: expr)*) {
339344
Err(QlError::LexError(LexError::$kind($($body,)*)))
340345
}

tests/target/macros.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -910,6 +910,11 @@ macro foo() {
910910
}
911911
}
912912

913+
// #2574
914+
macro_rules! test {
915+
() => {{}};
916+
}
917+
913918
macro lex_err($kind: ident $(, $body: expr)*) {
914919
Err(QlError::LexError(LexError::$kind($($body,)*)))
915920
}

0 commit comments

Comments
 (0)