aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-01-09 20:32:18 +0000
committerAleksey Kladov <[email protected]>2018-01-09 20:32:18 +0000
commit5ea7e5fb7ab9f9ed762c8b5220ba01a29796a871 (patch)
treee67b91e3fe1d046d886bce5e896bb045e327169e /tests
parent1544e89c49c67df00fc72d841f3e39be792cbe2b (diff)
G: simplest use items
Diffstat (limited to 'tests')
-rw-r--r--tests/data/parser/ok/0009_use_item.rs2
-rw-r--r--tests/data/parser/ok/0009_use_item.txt17
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/data/parser/ok/0009_use_item.rs b/tests/data/parser/ok/0009_use_item.rs
new file mode 100644
index 000000000..05a6aff83
--- /dev/null
+++ b/tests/data/parser/ok/0009_use_item.rs
@@ -0,0 +1,2 @@
1use foo;
2use ::bar; \ No newline at end of file
diff --git a/tests/data/parser/ok/0009_use_item.txt b/tests/data/parser/ok/0009_use_item.txt
new file mode 100644
index 000000000..f0b2981f2
--- /dev/null
+++ b/tests/data/parser/ok/0009_use_item.txt
@@ -0,0 +1,17 @@
1FILE@[0; 19)
2 USE_ITEM@[0; 9)
3 USE_KW@[0; 3)
4 PATH@[3; 7)
5 PATH_SEGMENT@[3; 7)
6 WHITESPACE@[3; 4)
7 IDENT@[4; 7)
8 SEMI@[7; 8)
9 WHITESPACE@[8; 9)
10 USE_ITEM@[9; 19)
11 USE_KW@[9; 12)
12 PATH@[12; 18)
13 WHITESPACE@[12; 13)
14 COLONCOLON@[13; 15)
15 PATH_SEGMENT@[15; 18)
16 IDENT@[15; 18)
17 SEMI@[18; 19)