aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/data/parser/ok/0010_use_path_segments.rs2
-rw-r--r--tests/data/parser/ok/0010_use_path_segments.txt34
2 files changed, 36 insertions, 0 deletions
diff --git a/tests/data/parser/ok/0010_use_path_segments.rs b/tests/data/parser/ok/0010_use_path_segments.rs
new file mode 100644
index 000000000..1e71b7a6c
--- /dev/null
+++ b/tests/data/parser/ok/0010_use_path_segments.rs
@@ -0,0 +1,2 @@
1use ::foo::bar::baz;
2use foo::bar::baz;
diff --git a/tests/data/parser/ok/0010_use_path_segments.txt b/tests/data/parser/ok/0010_use_path_segments.txt
new file mode 100644
index 000000000..cad609087
--- /dev/null
+++ b/tests/data/parser/ok/0010_use_path_segments.txt
@@ -0,0 +1,34 @@
1FILE@[0; 40)
2 USE_ITEM@[0; 21)
3 USE_KW@[0; 3)
4 PATH@[3; 9)
5 WHITESPACE@[3; 4)
6 COLONCOLON@[4; 6)
7 PATH_SEGMENT@[6; 9)
8 IDENT@[6; 9)
9 PATH@[9; 14)
10 COLONCOLON@[9; 11)
11 PATH_SEGMENT@[11; 14)
12 IDENT@[11; 14)
13 PATH@[14; 19)
14 COLONCOLON@[14; 16)
15 PATH_SEGMENT@[16; 19)
16 IDENT@[16; 19)
17 SEMI@[19; 20)
18 WHITESPACE@[20; 21)
19 USE_ITEM@[21; 40)
20 USE_KW@[21; 24)
21 PATH@[24; 28)
22 PATH_SEGMENT@[24; 28)
23 WHITESPACE@[24; 25)
24 IDENT@[25; 28)
25 PATH@[28; 33)
26 COLONCOLON@[28; 30)
27 PATH_SEGMENT@[30; 33)
28 IDENT@[30; 33)
29 PATH@[33; 38)
30 COLONCOLON@[33; 35)
31 PATH_SEGMENT@[35; 38)
32 IDENT@[35; 38)
33 SEMI@[38; 39)
34 WHITESPACE@[39; 40)