aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-08 15:33:16 +0100
committerAleksey Kladov <[email protected]>2018-08-08 15:33:16 +0100
commit99f6976b202cc8c47b95d6443d23a5745dcf8010 (patch)
tree30c6638dbf02585c252a415b1a4e6705bd55e3f3 /tests
parent5e0fbd59645ad7a8808a7ae9f3ea394afa475852 (diff)
bouds in types
Diffstat (limited to 'tests')
-rw-r--r--tests/data/parser/inline/0095_path_type_with_bounds.rs1
-rw-r--r--tests/data/parser/inline/0095_path_type_with_bounds.txt35
2 files changed, 36 insertions, 0 deletions
diff --git a/tests/data/parser/inline/0095_path_type_with_bounds.rs b/tests/data/parser/inline/0095_path_type_with_bounds.rs
new file mode 100644
index 000000000..215210e27
--- /dev/null
+++ b/tests/data/parser/inline/0095_path_type_with_bounds.rs
@@ -0,0 +1 @@
fn foo() -> Box<T + 'f> {}
diff --git a/tests/data/parser/inline/0095_path_type_with_bounds.txt b/tests/data/parser/inline/0095_path_type_with_bounds.txt
new file mode 100644
index 000000000..aeda229d5
--- /dev/null
+++ b/tests/data/parser/inline/0095_path_type_with_bounds.txt
@@ -0,0 +1,35 @@
1FILE@[0; 27)
2 FN_ITEM@[0; 26)
3 FN_KW@[0; 2)
4 WHITESPACE@[2; 3)
5 NAME@[3; 6)
6 IDENT@[3; 6) "foo"
7 PARAM_LIST@[6; 8)
8 L_PAREN@[6; 7)
9 R_PAREN@[7; 8)
10 WHITESPACE@[8; 9)
11 THIN_ARROW@[9; 11)
12 WHITESPACE@[11; 12)
13 PATH_TYPE@[12; 23)
14 PATH@[12; 23)
15 PATH_SEGMENT@[12; 23)
16 NAME_REF@[12; 15)
17 IDENT@[12; 15) "Box"
18 TYPE_ARG_LIST@[15; 23)
19 L_ANGLE@[15; 16)
20 TYPE_ARG@[16; 22)
21 PATH_TYPE@[16; 22)
22 PATH@[16; 17)
23 PATH_SEGMENT@[16; 17)
24 NAME_REF@[16; 17)
25 IDENT@[16; 17) "T"
26 WHITESPACE@[17; 18)
27 PLUS@[18; 19)
28 WHITESPACE@[19; 20)
29 LIFETIME@[20; 22) "'f"
30 R_ANGLE@[22; 23)
31 WHITESPACE@[23; 24)
32 BLOCK_EXPR@[24; 26)
33 L_CURLY@[24; 25)
34 R_CURLY@[25; 26)
35 WHITESPACE@[26; 27)