Skip to main content
edited tags
Link
Source Link

Getting error while compiling the program

Hey I am facing this error

error[E0658]: let...else statements are unstable
   --> /home/asus/.cargo/registry/src/github.com-1ecc6299db9ec823/solana-frozen-abi-macro-1.16.0/src/lib.rs:422:5
    |
422 | /     let Some(expected_digest) = expected_digest else {
423 | |         return Error::new_spanned(
424 | |             TokenStream2::from(item),
425 | |             "the required \"digest\" = ... attribute is missing.",
...   |
428 | |         .into()
429 | |     };
    | |______^
    |
    = note: see issue #87335 <https://github.com/rust-lang/rust/issues/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 solana-frozen-abi-macro due to previous error
warning: build failed, waiting for other jobs to finish...

While running to build my program using 'cargo build-bpf'