blob: 29ee5f91717d5cf8af94477408d6024c7e0f6f32 [file] [log] [blame]
// 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 `std::rc::Rc<()>` cannot be sent between threads safely
}