diff options
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/err')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.rs | 2 | ||||
-rw-r--r-- | crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.txt | 47 |
2 files changed, 49 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..829ca1c4b --- /dev/null +++ b/crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.rs | |||
@@ -0,0 +1,2 @@ | |||
1 | impl<T: Clone> | ||
2 | impl<T> OnceCell<T> {} | ||
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..9e26f58a0 --- /dev/null +++ b/crates/ra_syntax/tests/data/parser/err/0026_imp_recovery.txt | |||
@@ -0,0 +1,47 @@ | |||
1 | ROOT@[0; 38) | ||
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 trait or type` | ||
18 | err: `expected `{`` | ||
19 | WHITESPACE@[14; 15) | ||
20 | IMPL_ITEM@[15; 37) | ||
21 | IMPL_KW@[15; 19) | ||
22 | TYPE_PARAM_LIST@[19; 22) | ||
23 | L_ANGLE@[19; 20) | ||
24 | TYPE_PARAM@[20; 21) | ||
25 | NAME@[20; 21) | ||
26 | IDENT@[20; 21) "T" | ||
27 | R_ANGLE@[21; 22) | ||
28 | WHITESPACE@[22; 23) | ||
29 | PATH_TYPE@[23; 34) | ||
30 | PATH@[23; 34) | ||
31 | PATH_SEGMENT@[23; 34) | ||
32 | NAME_REF@[23; 31) | ||
33 | IDENT@[23; 31) "OnceCell" | ||
34 | TYPE_ARG_LIST@[31; 34) | ||
35 | L_ANGLE@[31; 32) | ||
36 | TYPE_ARG@[32; 33) | ||
37 | PATH_TYPE@[32; 33) | ||
38 | PATH@[32; 33) | ||
39 | PATH_SEGMENT@[32; 33) | ||
40 | NAME_REF@[32; 33) | ||
41 | IDENT@[32; 33) "T" | ||
42 | R_ANGLE@[33; 34) | ||
43 | WHITESPACE@[34; 35) | ||
44 | ITEM_LIST@[35; 37) | ||
45 | L_CURLY@[35; 36) | ||
46 | R_CURLY@[36; 37) | ||
47 | WHITESPACE@[37; 38) | ||