rust/src/test/run-pass/iter-ret.rs
2011-07-27 15:54:33 +02:00

7 lines
124 B
Rust

iter x() -> int { }
fn f() -> bool { for each i: int in x() { ret true; } ret false; }
fn main(args: vec[str]) { f(); }