]> git.lizzy.rs Git - rust.git/blob - src/test/ui/iterators/array.rs
Merge commit '5ff7b632a95bac6955611d85040859128902c580' into sync-rustfmt-subtree
[rust.git] / src / test / ui / iterators / array.rs
1 // check-pass
2
3 fn main() {
4     for _ in [1, 2] {}
5     let x = [1, 2];
6     for _ in x {}
7     for _ in [1.0, 2.0] {}
8 }