rust/src/test/run-pass/unique-destructure.rs

4 lines
75 B
Rust
Raw Normal View History

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