2012-08-06 13:15:40 -07:00
|
|
|
struct Foo {
|
2012-09-07 14:50:47 -07:00
|
|
|
x: int,
|
|
|
|
y: int
|
2012-08-06 13:15:40 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let a = Foo { x: 1, y: 2 };
|
2012-08-13 16:06:21 -07:00
|
|
|
let c = Foo { x: 4, .. a };
|
|
|
|
io::println(fmt!("%?", c));
|
2012-08-06 13:15:40 -07:00
|
|
|
}
|
|
|
|
|