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