Sign in
rust
/
rust
/
08650fbb506c44fbc95d91abfb7cd95a56bbff30
/
.
/
src
/
test
/
ui
/
issues
/
issue-21763.rs
blob: 5beb1d8b8c476feb3d4478afa731239c0c807643 [
file
]
// Regression test for HashMap only impl'ing Send/Sync if its contents do
use
std
::
collections
::
HashMap
;
use
std
::
rc
::
Rc
;
fn
foo
<
T
:
Send
>()
{}
fn
main
()
{
foo
::<
HashMap
<
Rc
<()>,
Rc
<()>>>();
//~^ ERROR `Rc<()>` cannot be sent between threads safely
}