aboutsummaryrefslogtreecommitdiff
path: root/tests/data/parser
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data/parser')
-rw-r--r--tests/data/parser/ok/0011_outer_attribute.rs3
-rw-r--r--tests/data/parser/ok/0011_outer_attribute.txt29
2 files changed, 32 insertions, 0 deletions
diff --git a/tests/data/parser/ok/0011_outer_attribute.rs b/tests/data/parser/ok/0011_outer_attribute.rs
new file mode 100644
index 000000000..8b80c0d90
--- /dev/null
+++ b/tests/data/parser/ok/0011_outer_attribute.rs
@@ -0,0 +1,3 @@
1#[cfg(test)]
2#[ignore]
3fn foo() {}
diff --git a/tests/data/parser/ok/0011_outer_attribute.txt b/tests/data/parser/ok/0011_outer_attribute.txt
new file mode 100644
index 000000000..a790f4095
--- /dev/null
+++ b/tests/data/parser/ok/0011_outer_attribute.txt
@@ -0,0 +1,29 @@
1FILE@[0; 35)
2 ATTR@[0; 13)
3 POUND@[0; 1)
4 L_BRACK@[1; 2)
5 META_ITEM@[2; 11)
6 IDENT@[2; 5)
7 L_PAREN@[5; 6)
8 META_ITEM@[6; 10)
9 IDENT@[6; 10)
10 R_PAREN@[10; 11)
11 R_BRACK@[11; 12)
12 WHITESPACE@[12; 13)
13 ATTR@[13; 23)
14 POUND@[13; 14)
15 L_BRACK@[14; 15)
16 META_ITEM@[15; 21)
17 IDENT@[15; 21)
18 R_BRACK@[21; 22)
19 WHITESPACE@[22; 23)
20 FN_ITEM@[23; 35)
21 FN_KW@[23; 25)
22 WHITESPACE@[25; 26)
23 IDENT@[26; 29)
24 L_PAREN@[29; 30)
25 R_PAREN@[30; 31)
26 WHITESPACE@[31; 32)
27 L_CURLY@[32; 33)
28 R_CURLY@[33; 34)
29 WHITESPACE@[34; 35)