-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
same build error Win10 #13
Comments
This is most likely because you are probably using a newer Rust version (untested). |
thanks, the highest version I can find is 1.44.0 |
Yup, its a little counter-intuitive, but 1.8.0 is older than 1.44.0 rustup toolchain install 1.8.0 |
yeah tried that, doesn't seem to find it. never mind. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 traitstd::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
The text was updated successfully, but these errors were encountered: