]>
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 | | |
c0240ec0 | 7 | = help: within `(Rc<()>, Rc<()>)`, the trait `Send` is not implemented for `Rc<()>`, which is required by `HashMap<Rc<()>, Rc<()>>: Send` |
1b1a35ee | 8 | = note: required because it appears within the type `(Rc<()>, Rc<()>)` |
f2b60f7d | 9 | = note: required for `hashbrown::raw::RawTable<(Rc<()>, Rc<()>)>` to implement `Send` |
4b012472 | 10 | note: required because it appears within the type `hashbrown::map::HashMap<Rc<()>, Rc<()>, RandomState>` |
49aad941 | 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 | 19 | |
4b012472 | 20 | error: aborting due to 1 previous error |
8faf50e0 XL |
21 | |
22 | For more information about this error, try `rustc --explain E0277`. |