// Regression test for HashMap only impl'ing Send/Sync if its contents do use std::collections::HashMap; use std::rc::Rc; fn foo() {} fn main() { foo::, Rc<()>>>(); //~^ ERROR `Rc<()>` cannot be sent between threads safely }