Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 244 Bytes
// build-pass (FIXME(62277): could be check-pass?)
#![allow(unused_must_use)]
use std::thread;
fn _foo() {
thread::spawn(move || { // no need for -> ()
loop {
println!("hello");
}
}).join();
}
fn main() {}
You can’t perform that action at this time.