]> git.lizzy.rs Git - rust.git/blob - src/test/ui/iterators/array.rs
Rollup merge of #95534 - jyn514:std-mem-copy, r=joshtriplett
[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 }