]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/for-destruct.rs
Add tests for destructuring locals
[rust.git] / src / test / run-pass / for-destruct.rs
1 fn main() {
2     for {x, y}: {x: int, y: int} in ~[{x: 10, y: 20}, {x: 30, y: 0}] {
3         assert x + y == 30;
4     }
5 }