Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
237d54ff6c4fb3577e02d4c5af02813c11b63d01
/
.
/
src
/
test
/
ui
/
kindck
/
kindck-nonsendable-1.rs
blob: eaff5b1b9947ee2484a530e4c008c8f122647cb0 [
file
] [
log
] [
blame
]
use
std
::
rc
::
Rc
;
fn
foo
(
_x
:
Rc
<
usize
>)
{}
fn
bar
<
F
:
FnOnce
()
+
Send
>(
_
:
F
)
{
}
fn
main
()
{
let
x
=
Rc
::
new
(
3
);
bar
(
move
||
foo
(
x
));
//~^ ERROR `std::rc::Rc<usize>` cannot be sent between threads safely
}