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