Add test for a macro not containing an exprssion
This commit is contained in:
parent
9006a8b87d
commit
4121b503e9
2 changed files with 14 additions and 0 deletions
7
tests/source/macro_not_expr.rs
Normal file
7
tests/source/macro_not_expr.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
macro_rules! test {
|
||||
($($t:tt)*) => {}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
test!( a : B => c d );
|
||||
}
|
||||
7
tests/target/macro_not_expr.rs
Normal file
7
tests/target/macro_not_expr.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
macro_rules! test {
|
||||
($($t:tt)*) => {}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
test!( a : B => c d );
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue