2022-02-08 15:56:19 +00:00
|
|
|
error[E0277]: `Rc<i32>` cannot be shared between threads safely
|
2022-11-04 04:29:23 +00:00
|
|
|
--> tests/ui/not_send3.rs:8:26
|
|
|
|
|
|
|
|
|
8 | py.allow_threads(|| {
|
|
|
|
| ____________-------------_^
|
|
|
|
| | |
|
|
|
|
| | required by a bound introduced by this call
|
|
|
|
9 | | println!("{:?}", rc);
|
|
|
|
10 | | });
|
|
|
|
| |_________^ `Rc<i32>` cannot be shared between threads safely
|
|
|
|
|
|
|
|
|
= help: the trait `Sync` is not implemented for `Rc<i32>`
|
|
|
|
= note: required for `&Rc<i32>` to implement `Send`
|
2022-08-12 06:26:29 +00:00
|
|
|
note: required because it's used within this closure
|
2022-11-04 04:29:23 +00:00
|
|
|
--> tests/ui/not_send3.rs:8:26
|
|
|
|
|
|
|
|
|
8 | py.allow_threads(|| {
|
|
|
|
| ^^
|
|
|
|
= note: required for `[closure@$DIR/tests/ui/not_send3.rs:8:26: 8:28]` to implement `Ungil`
|
2022-02-08 15:56:19 +00:00
|
|
|
note: required by a bound in `pyo3::Python::<'py>::allow_threads`
|
2022-11-04 04:29:23 +00:00
|
|
|
--> src/marker.rs
|
|
|
|
|
|
|
|
|
| F: Ungil + FnOnce() -> T,
|
2023-03-09 23:41:26 +00:00
|
|
|
| ^^^^^ required by this bound in `Python::<'py>::allow_threads`
|