]> git.lizzy.rs Git - rust.git/blob - src/test/ui/iterators/array.rs
Merge commit 'ea199bacef07213dbe008841b89c450e3bf0c638' into rustfmt-sync
[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 }