2020-07-28 12:03:56 -05:00
|
|
|
// check-pass
|
|
|
|
|
2018-10-09 21:01:17 -05:00
|
|
|
fn main() {
|
|
|
|
for _ in [0..1] {}
|
2018-10-11 15:25:28 -05:00
|
|
|
for _ in [0..=1] {}
|
|
|
|
for _ in [0..] {}
|
|
|
|
for _ in [..1] {}
|
|
|
|
for _ in [..=1] {}
|
2018-10-09 21:01:17 -05:00
|
|
|
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] {}
|
2018-10-11 15:25:28 -05:00
|
|
|
for _ in [0..=1] {}
|
2018-10-09 21:01:17 -05:00
|
|
|
}
|