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