Skip to content

Commit

Permalink
Add test #2574 (#2577)
Browse files Browse the repository at this point in the history
  • Loading branch information
i1skn authored and topecongiro committed Mar 31, 2018
1 parent 73e7235 commit e6423cf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/source/macros.rs
Expand Up @@ -335,6 +335,11 @@ macro foo() {
}
}

// #2574
macro_rules! test {
() => {{}}
}

macro lex_err($kind: ident $(, $body: expr)*) {
Err(QlError::LexError(LexError::$kind($($body,)*)))
}
Expand Down
5 changes: 5 additions & 0 deletions tests/target/macros.rs
Expand Up @@ -910,6 +910,11 @@ macro foo() {
}
}

// #2574
macro_rules! test {
() => {{}};
}

macro lex_err($kind: ident $(, $body: expr)*) {
Err(QlError::LexError(LexError::$kind($($body,)*)))
}
Expand Down

0 comments on commit e6423cf

Please sign in to comment.