Skip to content
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

error[E0015]: calls in statics are limited #104

Closed
jinq0123 opened this issue Jun 6, 2023 · 1 comment
Closed

error[E0015]: calls in statics are limited #104

jinq0123 opened this issue Jun 6, 2023 · 1 comment

Comments

@jinq0123
Copy link

jinq0123 commented Jun 6, 2023

Rust 1.56.1 compiles error:

error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants
  --> d:\Users\jinqing01\.cargo\registry\src\github.com-1ecc6299db9ec823\ctrlc-3.4.0\src\lib.rs:63:31
   |
63 | static INIT_LOCK: Mutex<()> = Mutex::new(());
   |                               ^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0015`.
error: could not compile `ctrlc` due to previous error
@Detegr
Copy link
Owner

Detegr commented Jun 7, 2023

Version 3.2.5 (or 3.3.1 if you don't have conflicting handlers from elsewhere) should work for 1.56.1

@Detegr Detegr closed this as completed Jun 7, 2023
Detegr added a commit that referenced this issue Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants