Sign in
fuchsia
/
third_party
/
rust
/
03222c037142e915e9ea75f681ab98a5a46b8739
/
.
/
src
/
test
/
ui
/
no_send-rc.rs
blob: 6ed0286ef18d9e74ec866fb3c13b186ff4822666 [
file
] [
log
] [
blame
]
use
std
::
rc
::
Rc
;
fn
bar
<
T
:
Send
>(
_
:
T
)
{}
fn
main
()
{
let
x
=
Rc
::
new
(
5
);
bar
(
x
);
//~^ ERROR `std::rc::Rc<{integer}>` cannot be sent between threads safely
}