aboutsummaryrefslogtreecommitdiff
path: root/tests/data/parser
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-07 01:55:16 +0100
committerAleksey Kladov <[email protected]>2018-08-07 01:55:16 +0100
commit498098a5d968f06f08fa093f1fd5a43a9a61ecf3 (patch)
tree79311ef5a12ee1625657101570bad758c63c0a75 /tests/data/parser
parent66bd1ffa327b4b1691a260107ef53a7ef112c8ea (diff)
cast expr
Diffstat (limited to 'tests/data/parser')
-rw-r--r--tests/data/parser/inline/0087_cast_expr.rs3
-rw-r--r--tests/data/parser/inline/0087_cast_expr.txt29
2 files changed, 32 insertions, 0 deletions
diff --git a/tests/data/parser/inline/0087_cast_expr.rs b/tests/data/parser/inline/0087_cast_expr.rs
new file mode 100644
index 000000000..3e53d56d6
--- /dev/null
+++ b/tests/data/parser/inline/0087_cast_expr.rs
@@ -0,0 +1,3 @@
1fn foo() {
2 82 as i32;
3}
diff --git a/tests/data/parser/inline/0087_cast_expr.txt b/tests/data/parser/inline/0087_cast_expr.txt
new file mode 100644
index 000000000..78210f0d5
--- /dev/null
+++ b/tests/data/parser/inline/0087_cast_expr.txt
@@ -0,0 +1,29 @@
1FILE@[0; 28)
2 FN_ITEM@[0; 27)
3 FN_KW@[0; 2)
4 WHITESPACE@[2; 3)
5 NAME@[3; 6)
6 IDENT@[3; 6) "foo"
7 PARAM_LIST@[6; 8)
8 L_PAREN@[6; 7)
9 R_PAREN@[7; 8)
10 WHITESPACE@[8; 9)
11 BLOCK_EXPR@[9; 27)
12 L_CURLY@[9; 10)
13 WHITESPACE@[10; 15)
14 EXPR_STMT@[15; 25)
15 CAST_EXPR@[15; 24)
16 LITERAL@[15; 17)
17 INT_NUMBER@[15; 17) "82"
18 WHITESPACE@[17; 18)
19 AS_KW@[18; 20)
20 WHITESPACE@[20; 21)
21 PATH_TYPE@[21; 24)
22 PATH@[21; 24)
23 PATH_SEGMENT@[21; 24)
24 NAME_REF@[21; 24)
25 IDENT@[21; 24) "i32"
26 SEMI@[24; 25)
27 WHITESPACE@[25; 26)
28 R_CURLY@[26; 27)
29 WHITESPACE@[27; 28)