2020-09-02 07:40:56 +00:00
|
|
|
error[E0277]: `Rc<()>` cannot be sent between threads safely
|
2023-05-03 16:27:29 +00:00
|
|
|
--> $DIR/issue-21763.rs:11:11
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | foo::<HashMap<Rc<()>, Rc<()>>>();
|
2022-08-16 06:27:22 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ `Rc<()>` cannot be sent between threads safely
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: within `(Rc<()>, Rc<()>)`, the trait `Send` is not implemented for `Rc<()>`
|
|
|
|
= note: required because it appears within the type `(Rc<()>, Rc<()>)`
|
2022-08-15 20:31:37 +00:00
|
|
|
= note: required for `hashbrown::raw::RawTable<(Rc<()>, Rc<()>)>` to implement `Send`
|
2023-05-03 16:27:29 +00:00
|
|
|
note: required because it appears within the type `HashMap<Rc<()>, Rc<()>, RandomState>`
|
|
|
|
--> $HASHBROWN_SRC_LOCATION
|
|
|
|
|
|
|
|
|
LL | pub struct HashMap<K, V, S = DefaultHashBuilder, A: Allocator + Clone = Global> {
|
|
|
|
| ^^^^^^^
|
|
|
|
note: required because it appears within the type `HashMap<Rc<()>, Rc<()>>`
|
|
|
|
--> $SRC_DIR/std/src/collections/hash/map.rs:LL:COL
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `foo`
|
2023-05-03 16:27:29 +00:00
|
|
|
--> $DIR/issue-21763.rs:8:11
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
|
|
|
LL | fn foo<T: Send>() {}
|
|
|
|
| ^^^^ required by this bound in `foo`
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|