Skip to content

Commit 7cbdf35

Browse files
committed
Add a test for #2063
1 parent 2bf4747 commit 7cbdf35

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

tests/source/closure.rs

+6
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,9 @@ fn issue1713() {
165165
|| recurse(right, is_less, Some(pivot), limit),
166166
);
167167
}
168+
169+
fn issue2063() {
170+
|ctx: Ctx<(String, String)>| -> io::Result<Response> {
171+
Ok(Response::new().with_body(ctx.params.0))
172+
}
173+
}

tests/target/closure.rs

+6
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,9 @@ fn issue1713() {
196196
|| recurse(right, is_less, Some(pivot), limit),
197197
);
198198
}
199+
200+
fn issue2063() {
201+
|ctx: Ctx<(String, String)>| -> io::Result<Response> {
202+
Ok(Response::new().with_body(ctx.params.0))
203+
}
204+
}

0 commit comments

Comments
 (0)