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

Compiling error #1

Closed
francoisschwarzentruber opened this issue Dec 8, 2023 · 2 comments
Closed

Compiling error #1

francoisschwarzentruber opened this issue Dec 8, 2023 · 2 comments

Comments

@francoisschwarzentruber
Copy link

Hello,
your program seems nice but it does not compile. I just run cargo build which seems the standard method to compile in Rust (I am not a specialist of Rust at all) and I get:

error[E0658]: let...else statements are unstable
--> src/lib.rs:243:9
|
243 | / let Some(Step { node, backtracking }) = self.step_stack.pop() else {
244 | | return None;
245 | | };
| |__________^
|
= note: see issue #87335 rust-lang/rust#87335 for more information

For more information about this error, try rustc --explain E0658.

It seems that let...elseis not a standard feature.

Two ways to go:

  • either the program has to be corrected to comply the standard
  • or the README.md should explain what to do

Thank you!

@urholaukkarinen
Copy link
Owner

Which version of Rust do you have? The let-else syntax was added to stable Rust in version 1.65 (Nov. 3, 2022).

@urholaukkarinen
Copy link
Owner

Closing this. Feel free to re-open if the problem did not resolve

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