mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
9 lines
149 B
Rust
9 lines
149 B
Rust
//@ run-pass
|
|
|
|
use std::thread;
|
|
|
|
pub fn main() {
|
|
let mut i: isize = 0;
|
|
while i < 100 { i = i + 1; println!("{}", i); thread::yield_now(); }
|
|
}
|