Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
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
}