diff options
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/ok')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/ok/0038_where_pred_type.rs | 1 | ||||
-rw-r--r-- | crates/ra_syntax/tests/data/parser/ok/0038_where_pred_type.txt | 40 |
2 files changed, 41 insertions, 0 deletions
diff --git a/crates/ra_syntax/tests/data/parser/ok/0038_where_pred_type.rs b/crates/ra_syntax/tests/data/parser/ok/0038_where_pred_type.rs new file mode 100644 index 000000000..8bfc341a5 --- /dev/null +++ b/crates/ra_syntax/tests/data/parser/ok/0038_where_pred_type.rs | |||
@@ -0,0 +1 @@ | |||
fn test() where (u64, u64): Foo {} \ No newline at end of file | |||
diff --git a/crates/ra_syntax/tests/data/parser/ok/0038_where_pred_type.txt b/crates/ra_syntax/tests/data/parser/ok/0038_where_pred_type.txt new file mode 100644 index 000000000..4842e9b90 --- /dev/null +++ b/crates/ra_syntax/tests/data/parser/ok/0038_where_pred_type.txt | |||
@@ -0,0 +1,40 @@ | |||
1 | SOURCE_FILE@[0; 34) | ||
2 | FN_DEF@[0; 34) | ||
3 | FN_KW@[0; 2) | ||
4 | WHITESPACE@[2; 3) | ||
5 | NAME@[3; 7) | ||
6 | IDENT@[3; 7) "test" | ||
7 | PARAM_LIST@[7; 9) | ||
8 | L_PAREN@[7; 8) | ||
9 | R_PAREN@[8; 9) | ||
10 | WHITESPACE@[9; 10) | ||
11 | WHERE_CLAUSE@[10; 31) | ||
12 | WHERE_KW@[10; 15) | ||
13 | WHITESPACE@[15; 16) | ||
14 | WHERE_PRED@[16; 31) | ||
15 | TUPLE_TYPE@[16; 26) | ||
16 | L_PAREN@[16; 17) | ||
17 | PATH_TYPE@[17; 20) | ||
18 | PATH@[17; 20) | ||
19 | PATH_SEGMENT@[17; 20) | ||
20 | NAME_REF@[17; 20) | ||
21 | IDENT@[17; 20) "u64" | ||
22 | COMMA@[20; 21) | ||
23 | WHITESPACE@[21; 22) | ||
24 | PATH_TYPE@[22; 25) | ||
25 | PATH@[22; 25) | ||
26 | PATH_SEGMENT@[22; 25) | ||
27 | NAME_REF@[22; 25) | ||
28 | IDENT@[22; 25) "u64" | ||
29 | R_PAREN@[25; 26) | ||
30 | COLON@[26; 27) | ||
31 | WHITESPACE@[27; 28) | ||
32 | PATH_TYPE@[28; 31) | ||
33 | PATH@[28; 31) | ||
34 | PATH_SEGMENT@[28; 31) | ||
35 | NAME_REF@[28; 31) | ||
36 | IDENT@[28; 31) "Foo" | ||
37 | WHITESPACE@[31; 32) | ||
38 | BLOCK@[32; 34) | ||
39 | L_CURLY@[32; 33) | ||
40 | R_CURLY@[33; 34) | ||