-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Only change I made was to Csrgo.toml to update spmc as the version in there is gone. ArrayFire-rust alone compiles fine
error[E0277]: (dyn std::ops::Fn(defines::AfError) + 'static) cannot be shared between threads safely
--> arrayfire-rust\src\error.rs:25:1
|
25 | pub static DEFAULT_HANDLE_ERROR: &'static ErrorCallback = &handle_error_general;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (dyn std::ops::Fn(defines::AfError) + 'static) cannot be shared between threads safely
|
= help: within &'static (dyn std::ops::Fn(defines::AfError) + 'static), the trait std::marker::Sync is not implemented for (dyn std::ops::Fn(defines::AfError) + 'static)
= note: required because it appears within the type &'static (dyn std::ops::Fn(defines::AfError) + 'static)
= note: shared static variables must have a type that implements Sync