rust/tests/ui/iterators/array.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
117 B
Rust
Raw Normal View History

// check-pass
2018-10-09 21:01:17 -05:00
fn main() {
for _ in [1, 2] {}
let x = [1, 2];
for _ in x {}
for _ in [1.0, 2.0] {}
}