]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/for-destruct.rs
Make vectors uglier ([]/~). Sorry. Should be temporary. Closes #2725.
[rust.git] / src / test / run-pass / for-destruct.rs
1 fn main() {
2     for vec::each([{x: 10, y: 20}, {x: 30, y: 0}]/~) {|elt|
3         assert (elt.x + elt.y == 30);
4     }
5 }