diff options
author | Aleksey Kladov <[email protected]> | 2018-09-08 08:13:32 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-09-08 08:13:32 +0100 |
commit | bd3a26493f101039fb6fe97561a15bcfffea82f0 (patch) | |
tree | f2dc8fd63c50ceed11a96fa7a0736819f8dbbf18 /crates/libsyntax2/tests/data/parser/ok/0034_macro_2.0.rs | |
parent | 44334f6f56bd99635f650796af0db8047e4c21c4 (diff) |
fix stuck parser
Diffstat (limited to 'crates/libsyntax2/tests/data/parser/ok/0034_macro_2.0.rs')
-rw-r--r-- | crates/libsyntax2/tests/data/parser/ok/0034_macro_2.0.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/crates/libsyntax2/tests/data/parser/ok/0034_macro_2.0.rs b/crates/libsyntax2/tests/data/parser/ok/0034_macro_2.0.rs new file mode 100644 index 000000000..2a70ee83a --- /dev/null +++ b/crates/libsyntax2/tests/data/parser/ok/0034_macro_2.0.rs | |||
@@ -0,0 +1,16 @@ | |||
1 | macro parse_use_trees($($s:expr),* $(,)*) { | ||
2 | vec![ | ||
3 | $(parse_use_tree($s),)* | ||
4 | ] | ||
5 | } | ||
6 | |||
7 | #[test] | ||
8 | fn test_use_tree_merge() { | ||
9 | macro test_merge([$($input:expr),* $(,)*], [$($output:expr),* $(,)*]) { | ||
10 | assert_eq!( | ||
11 | merge_use_trees(parse_use_trees!($($input,)*)), | ||
12 | parse_use_trees!($($output,)*), | ||
13 | ); | ||
14 | } | ||
15 | } | ||
16 | |||