rust/src/test/run-pass/unique-destructure.rs
2011-09-23 16:12:04 -07:00

4 lines
75 B
Rust

fn main() {
let ~{a, b} = ~{a: 100, b: 200};
assert a + b == 300;
}