2020-09-02 10:40:56 +03:00
error[E0277]: `Rc<usize>` cannot be sent between threads safely
2022-08-16 06:27:22 +00:00
--> $DIR/kindck-nonsendable-1.rs:9:9
2018-08-08 14:28:26 +02:00
|
LL | bar(move|| foo(x));
2022-08-16 06:27:22 +00:00
| --- ------^^^^^^^
| | |
| | `Rc<usize>` cannot be sent between threads safely
2023-09-09 08:36:50 +02:00
| | within this `{closure@$DIR/kindck-nonsendable-1.rs:9:9: 9:15}`
2022-08-16 06:27:22 +00:00
| required by a bound introduced by this call
2018-08-08 14:28:26 +02:00
|
2024-01-29 18:31:02 +00:00
= help: within `{closure@$DIR/kindck-nonsendable-1.rs:9:9: 9:15}`, the trait `Send` is not implemented for `Rc<usize>`, which is required by `{closure@$DIR/kindck-nonsendable-1.rs:9:9: 9:15}: Send`
2022-06-19 13:59:36 -05:00
note: required because it's used within this closure
--> $DIR/kindck-nonsendable-1.rs:9:9
|
LL | bar(move|| foo(x));
2022-06-27 07:45:35 +02:00
| ^^^^^^
2021-07-31 09:26:55 -07:00
note: required by a bound in `bar`
--> $DIR/kindck-nonsendable-1.rs:5:21
|
LL | fn bar<F:FnOnce() + Send>(_: F) { }
| ^^^^ required by this bound in `bar`
2018-08-08 14:28:26 +02:00
2023-11-21 15:44:16 +00:00
error: aborting due to 1 previous error
2018-08-08 14:28:26 +02:00
For more information about this error, try `rustc --explain E0277`.