]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-21763.rs
Rollup merge of #86479 - exphp-forks:float-debug-exponential, r=yaahc
[rust.git] / src / test / ui / issues / issue-21763.rs
1 // Regression test for HashMap only impl'ing Send/Sync if its contents do
2
3 use std::collections::HashMap;
4 use std::rc::Rc;
5
6 fn foo<T: Send>() {}
7
8 fn main() {
9     foo::<HashMap<Rc<()>, Rc<()>>>();
10     //~^ ERROR `Rc<()>` cannot be sent between threads safely
11 }