Skip to content

Could not compile the code #1

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
DeliciousBounty opened this issue Dec 26, 2022 · 1 comment
Open

Could not compile the code #1

DeliciousBounty opened this issue Dec 26, 2022 · 1 comment

Comments

@DeliciousBounty
Copy link

error[E0658]: let...else statements are unstable
--> /home/nathan/.cargo/registry/src/github.heygears.com-1ecc6299db9ec823/fields-iter-macros-0.0.1/src/lib.rs:10:5
|
10 | / let syn::Data::Struct(strukt) = item.data else {
11 | | return syn::Error::new_spanned(&item, "only structs are supported for #[derive(FieldsInspect)]")
12 | | .into_compile_error()
13 | | .into();
14 | | };
| |______^
|
= note: see issue #87335 rust-lang/rust#87335 for more information
= help: add #![feature(let_else)] to the crate attributes to enable

For more information about this error, try rustc --explain E0658.
error: could not compile fields-iter-macros due to previous error

@ChayimFriedman2
Copy link
Owner

You're using an old version of Rust. Try updating it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants