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
|
|
|
|
|
2024-01-29 18:31:02 +00:00
|
|
|
= help: within `(Rc<()>, Rc<()>)`, the trait `Send` is not implemented for `Rc<()>`, which is required by `HashMap<Rc<()>, Rc<()>>: Send`
|
2020-09-02 07:40:56 +00:00
|
|
|
= 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-11-27 20:25:45 +00:00
|
|
|
note: required because it appears within the type `hashbrown::map::HashMap<Rc<()>, Rc<()>, RandomState>`
|
2023-05-03 16:27:29 +00:00
|
|
|
--> $HASHBROWN_SRC_LOCATION
|
|
|
|
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
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|