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/err/0013_invalid_type.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/err/0013_invalid_type.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/err/0013_invalid_type.txt | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/err/0013_invalid_type.txt b/crates/ra_syntax/test_data/parser/err/0013_invalid_type.txt new file mode 100644 index 000000000..bef286b37 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/err/0013_invalid_type.txt | |||
@@ -0,0 +1,89 @@ | |||
1 | SOURCE_FILE@[0; 86) | ||
2 | STRUCT_DEF@[0; 72) | ||
3 | VISIBILITY@[0; 3) | ||
4 | PUB_KW@[0; 3) "pub" | ||
5 | WHITESPACE@[3; 4) " " | ||
6 | STRUCT_KW@[4; 10) "struct" | ||
7 | WHITESPACE@[10; 11) " " | ||
8 | NAME@[11; 16) | ||
9 | IDENT@[11; 16) "Cache" | ||
10 | POS_FIELD_DEF_LIST@[16; 72) | ||
11 | L_PAREN@[16; 17) "(" | ||
12 | WHITESPACE@[17; 22) "\n " | ||
13 | POS_FIELD_DEF@[22; 68) | ||
14 | PATH_TYPE@[22; 68) | ||
15 | PATH@[22; 68) | ||
16 | PATH_SEGMENT@[22; 68) | ||
17 | NAME_REF@[22; 29) | ||
18 | IDENT@[22; 29) "RefCell" | ||
19 | TYPE_ARG_LIST@[29; 68) | ||
20 | L_ANGLE@[29; 30) "<" | ||
21 | TYPE_ARG@[30; 68) | ||
22 | PATH_TYPE@[30; 68) | ||
23 | PATH@[30; 68) | ||
24 | PATH_SEGMENT@[30; 68) | ||
25 | NAME_REF@[30; 37) | ||
26 | IDENT@[30; 37) "HashMap" | ||
27 | TYPE_ARG_LIST@[37; 68) | ||
28 | L_ANGLE@[37; 38) "<" | ||
29 | WHITESPACE@[38; 47) "\n " | ||
30 | TYPE_ARG@[47; 53) | ||
31 | PATH_TYPE@[47; 53) | ||
32 | PATH@[47; 53) | ||
33 | PATH_SEGMENT@[47; 53) | ||
34 | NAME_REF@[47; 53) | ||
35 | IDENT@[47; 53) "TypeId" | ||
36 | COMMA@[53; 54) "," | ||
37 | WHITESPACE@[54; 63) "\n " | ||
38 | TYPE_ARG@[63; 68) | ||
39 | PATH_TYPE@[63; 68) | ||
40 | PATH@[63; 68) | ||
41 | PATH_SEGMENT@[63; 68) | ||
42 | NAME_REF@[63; 66) | ||
43 | IDENT@[63; 66) "Box" | ||
44 | TYPE_ARG_LIST@[66; 68) | ||
45 | L_ANGLE@[66; 67) "<" | ||
46 | TYPE_ARG@[67; 68) | ||
47 | ERROR@[67; 68) | ||
48 | AT@[67; 68) "@" | ||
49 | WHITESPACE@[68; 69) " " | ||
50 | POS_FIELD_DEF@[69; 72) | ||
51 | PATH_TYPE@[69; 72) | ||
52 | PATH@[69; 72) | ||
53 | PATH_SEGMENT@[69; 72) | ||
54 | NAME_REF@[69; 72) | ||
55 | IDENT@[69; 72) "Any" | ||
56 | ERROR@[72; 72) | ||
57 | ERROR@[72; 73) | ||
58 | R_ANGLE@[72; 73) ">" | ||
59 | ERROR@[73; 74) | ||
60 | COMMA@[73; 74) "," | ||
61 | WHITESPACE@[74; 79) "\n " | ||
62 | ERROR@[79; 80) | ||
63 | R_ANGLE@[79; 80) ">" | ||
64 | ERROR@[80; 81) | ||
65 | R_ANGLE@[80; 81) ">" | ||
66 | WHITESPACE@[81; 82) "\n" | ||
67 | ERROR@[82; 83) | ||
68 | R_PAREN@[82; 83) ")" | ||
69 | ERROR@[83; 84) | ||
70 | SEMI@[83; 84) ";" | ||
71 | WHITESPACE@[84; 86) "\n\n" | ||
72 | error 67: expected type | ||
73 | error 68: expected COMMA | ||
74 | error 68: expected R_ANGLE | ||
75 | error 68: expected COMMA | ||
76 | error 68: expected R_ANGLE | ||
77 | error 68: expected COMMA | ||
78 | error 68: expected R_ANGLE | ||
79 | error 68: expected COMMA | ||
80 | error 72: expected COMMA | ||
81 | error 72: expected a type | ||
82 | error 72: expected R_PAREN | ||
83 | error 72: expected SEMI | ||
84 | error 72: expected an item | ||
85 | error 73: expected an item | ||
86 | error 79: expected an item | ||
87 | error 80: expected an item | ||
88 | error 82: expected an item | ||
89 | error 83: expected an item | ||