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

How to enable feature 'bool_to_option' when compling on Windows 10? #175

Closed
lotusstudio opened this issue Mar 6, 2021 · 1 comment
Closed

Comments

@lotusstudio
Copy link

Checking shakmaty v0.18.0
error[E0658]: use of unstable library feature 'bool_to_option'
--> C:\Users\Lotus.cargo\registry\src\crates.rustcc.com-a21e0f92747beca3\shakmaty-0.18.0\src\fen.rs:459:110
|
459 | } else if let Some(split_point) = board_part.iter().enumerate().filter_map(|(idx, ch)| (*ch == b'/').then(||
idx)).nth(7) {
| ^^^^
|
= note: see issue #64260 rust-lang/rust#64260 for more information
= help: add #![feature(bool_to_option)] to the crate attributes to enable

error: aborting due to previous error

For more information about this error, try rustc --explain E0658.
error: could not compile shakmaty.

To learn more, run the command again with --verbose.

@niklasf
Copy link
Member

niklasf commented Mar 6, 2021

Hi. This requires Rust 1.50. If you have installed Rust using rustup, simply rustup update to update to the latest stable.

@niklasf niklasf closed this as completed Mar 6, 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