From 7dd078f53f4e1817207b089fb08d6a00121ca05b Mon Sep 17 00:00:00 2001 From: Ozaren Date: Wed, 19 Dec 2018 00:19:07 -0500 Subject: [PATCH] fixed test, now it doesn't use a fundemental type i.e. `Box`, instead it now uses `Vec` --- src/test/run-pass/try_from.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/test/run-pass/try_from.rs b/src/test/run-pass/try_from.rs index 3f2eb98f861a..767c2b914717 100644 --- a/src/test/run-pass/try_from.rs +++ b/src/test/run-pass/try_from.rs @@ -32,12 +32,13 @@ impl From> for Box { } */ -impl Into> for Foo { - fn into(self) -> Box { - Box::new(self.t) +impl Into> for Foo { + fn into(self) -> Vec { + vec![self.t] } } pub fn main() { - let _: Result, !> = Foo { t: 10 }.try_into(); + let _: Result, !> = Foo { t: 10 }.try_into(); } +