]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0277]: `Rc<()>` cannot be sent between threads safely |
49aad941 | 2 | --> $DIR/issue-21763.rs:11:11 |
8faf50e0 XL |
3 | | |
4 | LL | foo::<HashMap<Rc<()>, Rc<()>>>(); | |
f2b60f7d | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^ `Rc<()>` cannot be sent between threads safely |
8faf50e0 | 6 | | |
1b1a35ee XL |
7 | = help: within `(Rc<()>, Rc<()>)`, the trait `Send` is not implemented for `Rc<()>` |
8 | = note: required because it appears within the type `(Rc<()>, Rc<()>)` | |
f2b60f7d | 9 | = note: required for `hashbrown::raw::RawTable<(Rc<()>, Rc<()>)>` to implement `Send` |
49aad941 FG |
10 | note: required because it appears within the type `HashMap<Rc<()>, Rc<()>, RandomState>` |
11 | --> $HASHBROWN_SRC_LOCATION | |
49aad941 FG |
12 | note: required because it appears within the type `HashMap<Rc<()>, Rc<()>>` |
13 | --> $SRC_DIR/std/src/collections/hash/map.rs:LL:COL | |
94222f64 | 14 | note: required by a bound in `foo` |
49aad941 | 15 | --> $DIR/issue-21763.rs:8:11 |
94222f64 XL |
16 | | |
17 | LL | fn foo<T: Send>() {} | |
18 | | ^^^^ required by this bound in `foo` | |
8faf50e0 XL |
19 | |
20 | error: aborting due to previous error | |
21 | ||
22 | For more information about this error, try `rustc --explain E0277`. |