aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-08 13:05:33 +0100
committerAleksey Kladov <[email protected]>2018-08-08 13:05:33 +0100
commit5e0fbd59645ad7a8808a7ae9f3ea394afa475852 (patch)
treea1a805e24ff84f2b7b94608a9f5cf2708fb838b6 /tests
parentbfb90dc4f1e9d86a24207b252c5f3405037928b1 (diff)
Range patterns
Diffstat (limited to 'tests')
-rw-r--r--tests/data/parser/inline/0094_range_pat.rs3
-rw-r--r--tests/data/parser/inline/0094_range_pat.txt41
2 files changed, 44 insertions, 0 deletions
diff --git a/tests/data/parser/inline/0094_range_pat.rs b/tests/data/parser/inline/0094_range_pat.rs
new file mode 100644
index 000000000..657467e75
--- /dev/null
+++ b/tests/data/parser/inline/0094_range_pat.rs
@@ -0,0 +1,3 @@
1fn main() {
2 match 92 { 0 ... 100 => () }
3}
diff --git a/tests/data/parser/inline/0094_range_pat.txt b/tests/data/parser/inline/0094_range_pat.txt
new file mode 100644
index 000000000..01aed336b
--- /dev/null
+++ b/tests/data/parser/inline/0094_range_pat.txt
@@ -0,0 +1,41 @@
1FILE@[0; 47)
2 FN_ITEM@[0; 46)
3 FN_KW@[0; 2)
4 WHITESPACE@[2; 3)
5 NAME@[3; 7)
6 IDENT@[3; 7) "main"
7 PARAM_LIST@[7; 9)
8 L_PAREN@[7; 8)
9 R_PAREN@[8; 9)
10 WHITESPACE@[9; 10)
11 BLOCK_EXPR@[10; 46)
12 L_CURLY@[10; 11)
13 WHITESPACE@[11; 16)
14 MATCH_EXPR@[16; 44)
15 MATCH_KW@[16; 21)
16 WHITESPACE@[21; 22)
17 LITERAL@[22; 24)
18 INT_NUMBER@[22; 24) "92"
19 WHITESPACE@[24; 25)
20 L_CURLY@[25; 26)
21 WHITESPACE@[26; 27)
22 MATCH_ARM@[27; 42)
23 RANGE_PAT@[27; 36)
24 LITERAL@[27; 28)
25 INT_NUMBER@[27; 28) "0"
26 WHITESPACE@[28; 29)
27 DOTDOTDOT@[29; 32)
28 WHITESPACE@[32; 33)
29 LITERAL@[33; 36)
30 INT_NUMBER@[33; 36) "100"
31 WHITESPACE@[36; 37)
32 FAT_ARROW@[37; 39)
33 WHITESPACE@[39; 40)
34 TUPLE_EXPR@[40; 42)
35 L_PAREN@[40; 41)
36 R_PAREN@[41; 42)
37 WHITESPACE@[42; 43)
38 R_CURLY@[43; 44)
39 WHITESPACE@[44; 45)
40 R_CURLY@[45; 46)
41 WHITESPACE@[46; 47)