summaryrefslogtreecommitdiffstats
path: root/src/test/ui/iterators/array.rs
blob: 5985c74e11fdf313cf6b3b24d1ab2b635f395e4b (plain)
1
2
3
4
5
6
7
8
// check-pass

fn main() {
    for _ in [1, 2] {}
    let x = [1, 2];
    for _ in x {}
    for _ in [1.0, 2.0] {}
}