2019-07-27 00:54:25 +03:00
|
|
|
//@ run-pass
|
|
|
|
|
2015-02-17 15:10:25 -08:00
|
|
|
use std::thread;
|
2013-05-24 19:35:29 -07:00
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() {
|
2015-03-25 17:06:52 -07:00
|
|
|
let mut i: isize = 0;
|
2024-08-24 05:32:52 +02:00
|
|
|
while i < 100 {
|
|
|
|
i = i + 1;
|
|
|
|
println!("{}", i);
|
|
|
|
thread::yield_now();
|
|
|
|
}
|
2011-08-17 11:44:35 -07:00
|
|
|
}
|