]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-20454.rs
Auto merge of #107044 - cuviper:more-llvm-ci, r=Mark-Simulacrum
[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() {}