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

11 lines
109 B
Rust
Raw Normal View History

2010-06-23 23:03:09 -05:00
// -*- rust -*-
fn main() {
let int i = 0;
while (i < 100) {
i = i + 1;
log i;
yield;
}
}