From b24433f36dbc6ac8540e5b961fafdbb4fa155298 Mon Sep 17 00:00:00 2001 From: llogiq Date: Fri, 8 May 2015 06:01:41 +0200 Subject: [PATCH] added test for issue #31 --- tests/compile-fail/box_vec.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/compile-fail/box_vec.rs b/tests/compile-fail/box_vec.rs index cd1270b23..51d21f553 100644 --- a/tests/compile-fail/box_vec.rs +++ b/tests/compile-fail/box_vec.rs @@ -7,6 +7,11 @@ pub fn test(foo: Box>) { //~ ERROR You seem to be trying to use Box)>) { // pass if #31 is fixed + foo(vec![1, 2, 3]) +} + fn main(){ test(Box::new(Vec::new())); -} \ No newline at end of file + test2(Box::new(|v| println!("{:?}", v))); +}