]> git.lizzy.rs Git - rust.git/blob - src/test/ui/threads-sendsync/yield2.rs
Merge commit 'c19edfd71a1d0ddef86c2c67fdb40718d40a72b4' into sync_cg_clif-2022-07-25
[rust.git] / src / test / ui / threads-sendsync / yield2.rs
1 // run-pass
2
3 use std::thread;
4
5 pub fn main() {
6     let mut i: isize = 0;
7     while i < 100 { i = i + 1; println!("{}", i); thread::yield_now(); }
8 }