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