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)) + } +}