rust/src/test/run-pass/let-destruct.rs
2011-08-01 17:52:43 +02:00

9 lines
108 B
Rust

tag xx {
xx(int);
}
fn main() {
let @{x:xx(x), y} = @{x: xx(10), y: 20};
assert x + y == 30;
}