rust/src/test/run-pass/yield2.rs

8 lines
134 B
Rust

// -*- rust -*-
extern mod std;
fn main() {
let mut i: int = 0;
while i < 100 { i = i + 1; log(error, i); task::yield(); }
}