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