rust/src/test/run-pass/let-destruct.rs

9 lines
108 B
Rust
Raw Normal View History

2011-08-01 08:46:17 -05:00
tag xx {
xx(int);
}
fn main() {
let @{x:xx(x), y} = @{x: xx(10), y: 20};
assert x + y == 30;
}