aboutsummaryrefslogtreecommitdiff
path: root/tests/data/parser/ok
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data/parser/ok')
-rw-r--r--tests/data/parser/ok/0017_attr_trailing_comma.rs2
-rw-r--r--tests/data/parser/ok/0017_attr_trailing_comma.txt23
2 files changed, 25 insertions, 0 deletions
diff --git a/tests/data/parser/ok/0017_attr_trailing_comma.rs b/tests/data/parser/ok/0017_attr_trailing_comma.rs
new file mode 100644
index 000000000..fe0a7bb97
--- /dev/null
+++ b/tests/data/parser/ok/0017_attr_trailing_comma.rs
@@ -0,0 +1,2 @@
1#[foo(a,)]
2fn foo() {}
diff --git a/tests/data/parser/ok/0017_attr_trailing_comma.txt b/tests/data/parser/ok/0017_attr_trailing_comma.txt
new file mode 100644
index 000000000..1b99d7ffd
--- /dev/null
+++ b/tests/data/parser/ok/0017_attr_trailing_comma.txt
@@ -0,0 +1,23 @@
1FILE@[0; 23)
2 FN_ITEM@[0; 23)
3 ATTR@[0; 11)
4 POUND@[0; 1)
5 L_BRACK@[1; 2)
6 META_ITEM@[2; 9)
7 IDENT@[2; 5)
8 L_PAREN@[5; 6)
9 META_ITEM@[6; 7)
10 IDENT@[6; 7)
11 COMMA@[7; 8)
12 R_PAREN@[8; 9)
13 R_BRACK@[9; 10)
14 WHITESPACE@[10; 11)
15 FN_KW@[11; 13)
16 WHITESPACE@[13; 14)
17 IDENT@[14; 17)
18 L_PAREN@[17; 18)
19 R_PAREN@[18; 19)
20 WHITESPACE@[19; 20)
21 L_CURLY@[20; 21)
22 R_CURLY@[21; 22)
23 WHITESPACE@[22; 23)