rust/src/test/run-pass/let-destruct.rs
2012-01-19 16:11:17 -08:00

7 lines
105 B
Rust

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