aboutsummaryrefslogtreecommitdiff
path: root/tests/data/parser/err
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-01-13 08:55:03 +0000
committerAleksey Kladov <[email protected]>2018-01-13 08:55:03 +0000
commit29b2e0adcc35834dda2884222624bfcc268a3eff (patch)
tree0838a22c27bba0361dcde3660075175f243a4d7a /tests/data/parser/err
parentf31d85860771b0c4c8d232d79e4a3489a051ba9d (diff)
G: allow self & super in paths
Diffstat (limited to 'tests/data/parser/err')
-rw-r--r--tests/data/parser/err/0004_use_path_bad_segment.rs1
-rw-r--r--tests/data/parser/err/0004_use_path_bad_segment.txt16
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/data/parser/err/0004_use_path_bad_segment.rs b/tests/data/parser/err/0004_use_path_bad_segment.rs
new file mode 100644
index 000000000..060e65d06
--- /dev/null
+++ b/tests/data/parser/err/0004_use_path_bad_segment.rs
@@ -0,0 +1 @@
use foo::92; \ No newline at end of file
diff --git a/tests/data/parser/err/0004_use_path_bad_segment.txt b/tests/data/parser/err/0004_use_path_bad_segment.txt
new file mode 100644
index 000000000..241ee8562
--- /dev/null
+++ b/tests/data/parser/err/0004_use_path_bad_segment.txt
@@ -0,0 +1,16 @@
1FILE@[0; 12)
2 USE_ITEM@[0; 9)
3 USE_KW@[0; 3)
4 PATH@[3; 9)
5 PATH@[3; 7)
6 PATH_SEGMENT@[3; 7)
7 WHITESPACE@[3; 4)
8 IDENT@[4; 7)
9 COLONCOLON@[7; 9)
10 PATH_SEGMENT@[9; 9)
11 err: `expected identifier`
12 err: `expected SEMI`
13 ERROR@[9; 12)
14 err: `expected item`
15 INT_NUMBER@[9; 11)
16 SEMI@[11; 12)