]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/for-destruct.rs
Merge pull request #2164 from grahame/floatinfstr
[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 }