rust/src/test/ui/iterators/array.rs
Oliver Scherer 61efc3b71b Update tests
2018-12-04 10:06:05 +01:00

10 lines
192 B
Rust

fn main() {
for _ in [1, 2] {}
//~^ ERROR is not an iterator
let x = [1, 2];
for _ in x {}
//~^ ERROR is not an iterator
for _ in [1.0, 2.0] {}
//~^ ERROR is not an iterator
}