diff --git a/tests/compile-fail/box_vec.rs b/tests/compile-fail/box_vec.rs index cd1270b2373..51d21f5537a 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))); +}