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
118 B
Rust
Raw Normal View History

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