//@ run-pass struct Recbox {x: Box} fn reclift(t: T) -> Recbox { return Recbox { x: Box::new(t) }; } pub fn main() { let foo: isize = 17; let rbfoo: Recbox = reclift::(foo); assert_eq!(*rbfoo.x, foo); }