From 7cbdf35f630d52cd888adfb90707b8bb5f4954da Mon Sep 17 00:00:00 2001 From: Seiichi Uchida Date: Tue, 17 Oct 2017 00:12:22 +0900 Subject: [PATCH] Add a test for #2063 --- tests/source/closure.rs | 6 ++++++ tests/target/closure.rs | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/tests/source/closure.rs b/tests/source/closure.rs index 684c811f5828..39059f40807f 100644 --- a/tests/source/closure.rs +++ b/tests/source/closure.rs @@ -165,3 +165,9 @@ fn issue1713() { || recurse(right, is_less, Some(pivot), limit), ); } + +fn issue2063() { + |ctx: Ctx<(String, String)>| -> io::Result { + Ok(Response::new().with_body(ctx.params.0)) + } +} diff --git a/tests/target/closure.rs b/tests/target/closure.rs index 8fbe99a1adce..9d59bfb64cbd 100644 --- a/tests/target/closure.rs +++ b/tests/target/closure.rs @@ -196,3 +196,9 @@ fn issue1713() { || recurse(right, is_less, Some(pivot), limit), ); } + +fn issue2063() { + |ctx: Ctx<(String, String)>| -> io::Result { + Ok(Response::new().with_body(ctx.params.0)) + } +}