struct Foo<'self> { x: &'self int } pub fn main() { let f = Foo { x: @3 }; assert!(*f.x == 3); }