diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-07-24 10:51:25 +0100 |
---|---|---|
committer | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-07-24 10:51:25 +0100 |
commit | 0194adb651257b69fdf04423b22c69db09fc489c (patch) | |
tree | 2353f8f068962313d0b2748aab58b71c4ca456d2 /crates/ra_syntax/test_data/parser/inline/err/0010_bad_tuple_index_expr.txt | |
parent | bf3030404ef8a161334326bad706f60ee8838f63 (diff) | |
parent | 459241f272748ff2e57b2c7e84f5a04f78d67edb (diff) |
Merge #1585
1585: move syntax tests to unit tests r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/err/0010_bad_tuple_index_expr.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/err/0010_bad_tuple_index_expr.txt | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0010_bad_tuple_index_expr.txt b/crates/ra_syntax/test_data/parser/inline/err/0010_bad_tuple_index_expr.txt new file mode 100644 index 000000000..a21b29c80 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/err/0010_bad_tuple_index_expr.txt | |||
@@ -0,0 +1,51 @@ | |||
1 | SOURCE_FILE@[0; 47) | ||
2 | FN_DEF@[0; 46) | ||
3 | FN_KW@[0; 2) "fn" | ||
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@[9; 46) | ||
12 | L_CURLY@[9; 10) "{" | ||
13 | WHITESPACE@[10; 15) "\n " | ||
14 | EXPR_STMT@[15; 20) | ||
15 | FIELD_EXPR@[15; 19) | ||
16 | PATH_EXPR@[15; 16) | ||
17 | PATH@[15; 16) | ||
18 | PATH_SEGMENT@[15; 16) | ||
19 | NAME_REF@[15; 16) | ||
20 | IDENT@[15; 16) "x" | ||
21 | DOT@[16; 17) "." | ||
22 | FLOAT_NUMBER@[17; 19) "0." | ||
23 | SEMI@[19; 20) ";" | ||
24 | WHITESPACE@[20; 25) "\n " | ||
25 | EXPR_STMT@[25; 32) | ||
26 | FIELD_EXPR@[25; 31) | ||
27 | PATH_EXPR@[25; 26) | ||
28 | PATH@[25; 26) | ||
29 | PATH_SEGMENT@[25; 26) | ||
30 | NAME_REF@[25; 26) | ||
31 | IDENT@[25; 26) "x" | ||
32 | DOT@[26; 27) "." | ||
33 | INT_NUMBER@[27; 31) "1i32" | ||
34 | SEMI@[31; 32) ";" | ||
35 | WHITESPACE@[32; 37) "\n " | ||
36 | EXPR_STMT@[37; 44) | ||
37 | FIELD_EXPR@[37; 43) | ||
38 | PATH_EXPR@[37; 38) | ||
39 | PATH@[37; 38) | ||
40 | PATH_SEGMENT@[37; 38) | ||
41 | NAME_REF@[37; 38) | ||
42 | IDENT@[37; 38) "x" | ||
43 | DOT@[38; 39) "." | ||
44 | INT_NUMBER@[39; 43) "0x01" | ||
45 | SEMI@[43; 44) ";" | ||
46 | WHITESPACE@[44; 45) "\n" | ||
47 | R_CURLY@[45; 46) "}" | ||
48 | WHITESPACE@[46; 47) "\n" | ||
49 | error [17; 19): Tuple (struct) field access is only allowed through decimal integers with no underscores or suffix | ||
50 | error [27; 31): Tuple (struct) field access is only allowed through decimal integers with no underscores or suffix | ||
51 | error [39; 43): Tuple (struct) field access is only allowed through decimal integers with no underscores or suffix | ||