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