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

Build failure due to attributes on if expressions #49

Closed
brianclinkenbeard opened this issue Jun 22, 2020 · 2 comments
Closed

Build failure due to attributes on if expressions #49

brianclinkenbeard opened this issue Jun 22, 2020 · 2 comments

Comments

@brianclinkenbeard
Copy link

brianclinkenbeard commented Jun 22, 2020

Compiling xidlehook-core v0.2.0 (/home/brian/documents/projects/xidlehook/xidlehook-core)
error: attributes are not yet allowed on `if` expressions
   --> xidlehook-core/src/lib.rs:474:21
    |
474 |                     #[cfg(feature = "tokio")]
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^

error: attributes are not yet allowed on `if` expressions
   --> xidlehook-core/src/lib.rs:484:21
    |
484 |                     #[cfg(feature = "tokio")]
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors

error: could not compile `xidlehook-core`.

rustc version: 1.42.0
Perhaps rust-lang/rust#69201 has something to do with this?

@brianclinkenbeard brianclinkenbeard changed the title Build failure Build failure due to attributes on if expressions Jun 22, 2020
@jD91mZM2
Copy link
Owner

Try updating rust?

@brianclinkenbeard
Copy link
Author

rustc 1.43 solved the issue. 🎉

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