summaryrefslogtreecommitdiffstats
path: root/tests/ui/iterators/ranges.rs
blob: 925d2d61a124744f076fbed6ffd6a5bd1a0cfef2 (plain)
1
2
3
4
5
6
7
8
9
fn main() {
    for _ in ..10 {}
    //~^ ERROR E0277
    for _ in ..=10 {}
    //~^ ERROR E0277
    for _ in 0..10 {}
    for _ in 0..=10 {}
    for _ in 0.. {}
}