Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-12041.rs
blob: 091e8fe8b2a661ac61ee142fc9018b9a824b43d6 [
file
] [
log
] [
blame
] [
edit
]
use
std
::
sync
::
mpsc
::
channel
;
use
std
::
thread
;
fn
main
()
{
let
(
tx
,
rx
)
=
channel
();
let
_t
=
thread
::
spawn
(
move
||
->
()
{
loop
{
let
tx
=
tx
;
//~^ ERROR: use of moved value: `tx`
tx
.
send
(
1
);
}
});
}