diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/parser/inline/0062_deref_expr.rs | 3 | ||||
-rw-r--r-- | tests/data/parser/inline/0062_deref_expr.txt | 26 |
2 files changed, 29 insertions, 0 deletions
diff --git a/tests/data/parser/inline/0062_deref_expr.rs b/tests/data/parser/inline/0062_deref_expr.rs new file mode 100644 index 000000000..b1e35defc --- /dev/null +++ b/tests/data/parser/inline/0062_deref_expr.rs | |||
@@ -0,0 +1,3 @@ | |||
1 | fn foo() { | ||
2 | **&1; | ||
3 | } | ||
diff --git a/tests/data/parser/inline/0062_deref_expr.txt b/tests/data/parser/inline/0062_deref_expr.txt new file mode 100644 index 000000000..62e8e6778 --- /dev/null +++ b/tests/data/parser/inline/0062_deref_expr.txt | |||
@@ -0,0 +1,26 @@ | |||
1 | FILE@[0; 23) | ||
2 | FN_ITEM@[0; 23) | ||
3 | FN_KW@[0; 2) | ||
4 | NAME@[2; 6) | ||
5 | WHITESPACE@[2; 3) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | PARAM_LIST@[6; 9) | ||
8 | L_PAREN@[6; 7) | ||
9 | R_PAREN@[7; 8) | ||
10 | WHITESPACE@[8; 9) | ||
11 | BLOCK@[9; 23) | ||
12 | L_CURLY@[9; 10) | ||
13 | EXPR_STMT@[10; 21) | ||
14 | DEREF_EXPR@[10; 19) | ||
15 | WHITESPACE@[10; 15) | ||
16 | STAR@[15; 16) | ||
17 | DEREF_EXPR@[16; 19) | ||
18 | STAR@[16; 17) | ||
19 | REF_EXPR@[17; 19) | ||
20 | AMPERSAND@[17; 18) | ||
21 | LITERAL@[18; 19) | ||
22 | INT_NUMBER@[18; 19) | ||
23 | SEMI@[19; 20) | ||
24 | WHITESPACE@[20; 21) | ||
25 | R_CURLY@[21; 22) | ||
26 | WHITESPACE@[22; 23) | ||