]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-20454.rs
Rollup merge of #106958 - jyn514:labels, r=m-ou-se
[rust.git] / tests / ui / issues / issue-20454.rs
1 // check-pass
2 #![allow(unused_must_use)]
3 use std::thread;
4
5 fn _foo() {
6     thread::spawn(move || { // no need for -> ()
7         loop {
8             println!("hello");
9         }
10     }).join();
11 }
12
13 fn main() {}