1 2 3 4 5 6 7 8 9 10
#[feature(managed_boxes)]; struct Foo<'a> { x: &'a int } pub fn main() { let f = Foo { x: @3 }; assert_eq!(*f.x, 3); }