//@ run-pass #![allow(dead_code)] struct Triple { x: T, y: T, z: T } fn box_it(x: Triple) -> Box> { return Box::new(x); } pub fn main() { let x: Box> = box_it::(Triple{x: 1, y: 2, z: 3}); assert_eq!(x.y, 2); }