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

v3.1.5 ctrlc::set_handler() weird errors #67

Closed
teknsl opened this issue Jul 16, 2020 · 2 comments
Closed

v3.1.5 ctrlc::set_handler() weird errors #67

teknsl opened this issue Jul 16, 2020 · 2 comments

Comments

@teknsl
Copy link

teknsl commented Jul 16, 2020

ctrlc::set_handler(move || { })

from rust analyzer: Syntax Error: expected BANG
from cargo / rustc:

error: expected one of ! or ::, found (

 ctrlc::set_handler(move || { })
                   ^ expected one of ! or ::

in addition my editor(vsc) does not have any autocomplete at all on it, but it has the docs shown when you finish the function. this does look like a compiler issue or something else, but this is the only time i have gotten this

os: Windows 10
rustc: 1.44.1
ctrlc ver: 3.1.5

@Detegr
Copy link
Owner

Detegr commented Jul 17, 2020

Could you post the complete program that fails to compile? I think there's a syntax error in some earlier code, or this is some weird compiler bug indeed. Could not reproduce this with 1.44.1 on Linux though, so I'm not so sure about the compiler bug.

@teknsl
Copy link
Author

teknsl commented Jul 17, 2020

this was very early on in a project so i barely have anything in the main file besides use and mod, even with everything commented out still getting the same error, tried with a blank project and that neither worked

@Detegr Detegr closed this as completed Jan 8, 2021
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