2013-12-12 01:17:54 -06:00
|
|
|
#[feature(managed_boxes)];
|
|
|
|
|
2013-12-10 01:16:18 -06:00
|
|
|
struct Foo<'a> {
|
|
|
|
x: &'a int
|
2013-01-07 18:57:43 -06:00
|
|
|
}
|
|
|
|
|
2013-02-01 21:43:17 -06:00
|
|
|
pub fn main() {
|
2013-01-07 18:57:43 -06:00
|
|
|
let f = Foo { x: @3 };
|
2013-05-18 21:02:45 -05:00
|
|
|
assert_eq!(*f.x, 3);
|
2013-01-07 18:57:43 -06:00
|
|
|
}
|