mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
17 lines
331 B
Rust
17 lines
331 B
Rust
// 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] {}
|
|
}
|