2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: `Rc<()>` cannot be sent between threads safely
|
2022-08-16 01:27:22 -05:00
|
|
|
--> $DIR/issue-21763.rs:9:11
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | foo::<HashMap<Rc<()>, Rc<()>>>();
|
2022-08-16 01:27:22 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ `Rc<()>` cannot be sent between threads safely
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
2020-09-02 02:40:56 -05: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 15:31:37 -05:00
|
|
|
= note: required for `hashbrown::raw::RawTable<(Rc<()>, Rc<()>)>` to implement `Send`
|
2022-12-27 20:56:00 -06:00
|
|
|
= note: required because it appears within the type `HashMap<Rc<()>, Rc<()>, RandomState>`
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: required because it appears within the type `HashMap<Rc<()>, Rc<()>>`
|
2021-07-31 11:26:55 -05:00
|
|
|
note: required by a bound in `foo`
|
|
|
|
--> $DIR/issue-21763.rs:6:11
|
|
|
|
|
|
|
|
|
LL | fn foo<T: Send>() {}
|
|
|
|
| ^^^^ required by this bound in `foo`
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|