summaryrefslogtreecommitdiffstats
path: root/tests/ui/iterators/array-of-ranges.rs
blob: 037540a3e89e629bad4e92d301ca767f77d04625 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// check-pass

fn main() {
    for _ in [0..1] {}
    for _ in [0..=1] {}
    for _ in [0..] {}
    for _ in [..1] {}
    for _ in [..=1] {}
    let start = 0;
    let end = 0;
    for _ in [start..end] {}
    let array_of_range = [start..end];
    for _ in array_of_range {}
    for _ in [0..1, 2..3] {}
    for _ in [0..=1] {}
}