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