aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/test_data/parser/ok/0062_macro_2.0.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/syntax/test_data/parser/ok/0062_macro_2.0.rs')
-rw-r--r--crates/syntax/test_data/parser/ok/0062_macro_2.0.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/crates/syntax/test_data/parser/ok/0062_macro_2.0.rs b/crates/syntax/test_data/parser/ok/0062_macro_2.0.rs
new file mode 100644
index 000000000..781047ba1
--- /dev/null
+++ b/crates/syntax/test_data/parser/ok/0062_macro_2.0.rs
@@ -0,0 +1,15 @@
1macro parse_use_trees($($s:expr),* $(,)*) {
2 vec![
3 $(parse_use_tree($s),)*
4 ]
5}
6
7#[test]
8fn 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}