aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/tests/data/parser/inline/ok
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/inline/ok')
-rw-r--r--crates/ra_syntax/tests/data/parser/inline/ok/0131_existential_type.rs1
-rw-r--r--crates/ra_syntax/tests/data/parser/inline/ok/0131_existential_type.txt31
2 files changed, 32 insertions, 0 deletions
diff --git a/crates/ra_syntax/tests/data/parser/inline/ok/0131_existential_type.rs b/crates/ra_syntax/tests/data/parser/inline/ok/0131_existential_type.rs
new file mode 100644
index 000000000..23baf7145
--- /dev/null
+++ b/crates/ra_syntax/tests/data/parser/inline/ok/0131_existential_type.rs
@@ -0,0 +1 @@
existential type Foo: Fn() -> usize;
diff --git a/crates/ra_syntax/tests/data/parser/inline/ok/0131_existential_type.txt b/crates/ra_syntax/tests/data/parser/inline/ok/0131_existential_type.txt
new file mode 100644
index 000000000..6bfac985a
--- /dev/null
+++ b/crates/ra_syntax/tests/data/parser/inline/ok/0131_existential_type.txt
@@ -0,0 +1,31 @@
1SOURCE_FILE@[0; 37)
2 TYPE_ALIAS_DEF@[0; 36)
3 EXISTENTIAL_KW@[0; 11) "existential"
4 WHITESPACE@[11; 12) " "
5 TYPE_KW@[12; 16) "type"
6 WHITESPACE@[16; 17) " "
7 NAME@[17; 20)
8 IDENT@[17; 20) "Foo"
9 COLON@[20; 21) ":"
10 WHITESPACE@[21; 22) " "
11 TYPE_BOUND_LIST@[22; 35)
12 TYPE_BOUND@[22; 35)
13 PATH_TYPE@[22; 35)
14 PATH@[22; 35)
15 PATH_SEGMENT@[22; 35)
16 NAME_REF@[22; 24)
17 IDENT@[22; 24) "Fn"
18 PARAM_LIST@[24; 26)
19 L_PAREN@[24; 25) "("
20 R_PAREN@[25; 26) ")"
21 WHITESPACE@[26; 27) " "
22 RET_TYPE@[27; 35)
23 THIN_ARROW@[27; 29) "->"
24 WHITESPACE@[29; 30) " "
25 PATH_TYPE@[30; 35)
26 PATH@[30; 35)
27 PATH_SEGMENT@[30; 35)
28 NAME_REF@[30; 35)
29 IDENT@[30; 35) "usize"
30 SEMI@[35; 36) ";"
31 WHITESPACE@[36; 37) "\n"