Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-20454.rs
blob: e56f2ffa371a3086c3abc44975068297321688e4 [
file
] [
log
] [
blame
] [
edit
]
//@ check-pass
#![
allow
(
unused_must_use
)]
use
std
::
thread
;
fn
_foo
()
{
thread
::
spawn
(
move
||
{
// no need for -> ()
loop
{
println
!(
"hello"
);
}
}).
join
();
}
fn
main
()
{}