diff options
Diffstat (limited to 'crates/ra_syntax/tests/data/parser')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.rs | 4 | ||||
-rw-r--r-- | crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.txt | 66 |
2 files changed, 70 insertions, 0 deletions
diff --git a/crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.rs b/crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.rs new file mode 100644 index 000000000..c4f5eca87 --- /dev/null +++ b/crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.rs | |||
@@ -0,0 +1,4 @@ | |||
1 | impl<T: Clone> | ||
2 | impl<T:Clone> | ||
3 | !impl<T> OnceCell<T> { | ||
4 | } | ||
diff --git a/crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.txt b/crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.txt new file mode 100644 index 000000000..60b65bce5 --- /dev/null +++ b/crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.txt | |||
@@ -0,0 +1,66 @@ | |||
1 | ROOT@[0; 54) | ||
2 | IMPL_ITEM@[0; 14) | ||
3 | IMPL_KW@[0; 4) | ||
4 | TYPE_PARAM_LIST@[4; 14) | ||
5 | L_ANGLE@[4; 5) | ||
6 | TYPE_PARAM@[5; 13) | ||
7 | NAME@[5; 6) | ||
8 | IDENT@[5; 6) "T" | ||
9 | COLON@[6; 7) | ||
10 | WHITESPACE@[7; 8) | ||
11 | PATH_TYPE@[8; 13) | ||
12 | PATH@[8; 13) | ||
13 | PATH_SEGMENT@[8; 13) | ||
14 | NAME_REF@[8; 13) | ||
15 | IDENT@[8; 13) "Clone" | ||
16 | R_ANGLE@[13; 14) | ||
17 | err: `expected type` | ||
18 | err: `expected `{`` | ||
19 | WHITESPACE@[14; 15) | ||
20 | IMPL_ITEM@[15; 30) | ||
21 | IMPL_KW@[15; 19) | ||
22 | TYPE_PARAM_LIST@[19; 28) | ||
23 | L_ANGLE@[19; 20) | ||
24 | TYPE_PARAM@[20; 27) | ||
25 | NAME@[20; 21) | ||
26 | IDENT@[20; 21) "T" | ||
27 | COLON@[21; 22) | ||
28 | PATH_TYPE@[22; 27) | ||
29 | PATH@[22; 27) | ||
30 | PATH_SEGMENT@[22; 27) | ||
31 | NAME_REF@[22; 27) | ||
32 | IDENT@[22; 27) "Clone" | ||
33 | R_ANGLE@[27; 28) | ||
34 | WHITESPACE@[28; 29) | ||
35 | EXCL@[29; 30) | ||
36 | err: `expected type` | ||
37 | err: `expected `{`` | ||
38 | IMPL_ITEM@[30; 53) | ||
39 | IMPL_KW@[30; 34) | ||
40 | TYPE_PARAM_LIST@[34; 37) | ||
41 | L_ANGLE@[34; 35) | ||
42 | TYPE_PARAM@[35; 36) | ||
43 | NAME@[35; 36) | ||
44 | IDENT@[35; 36) "T" | ||
45 | R_ANGLE@[36; 37) | ||
46 | WHITESPACE@[37; 38) | ||
47 | PATH_TYPE@[38; 49) | ||
48 | PATH@[38; 49) | ||
49 | PATH_SEGMENT@[38; 49) | ||
50 | NAME_REF@[38; 46) | ||
51 | IDENT@[38; 46) "OnceCell" | ||
52 | TYPE_ARG_LIST@[46; 49) | ||
53 | L_ANGLE@[46; 47) | ||
54 | TYPE_ARG@[47; 48) | ||
55 | PATH_TYPE@[47; 48) | ||
56 | PATH@[47; 48) | ||
57 | PATH_SEGMENT@[47; 48) | ||
58 | NAME_REF@[47; 48) | ||
59 | IDENT@[47; 48) "T" | ||
60 | R_ANGLE@[48; 49) | ||
61 | WHITESPACE@[49; 50) | ||
62 | ITEM_LIST@[50; 53) | ||
63 | L_CURLY@[50; 51) | ||
64 | WHITESPACE@[51; 52) | ||
65 | R_CURLY@[52; 53) | ||
66 | WHITESPACE@[53; 54) | ||