Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

let...else statements are unstable in solana-frozen-abi-macro-1.16.0 #32133

@D0bhareach

Description

@D0bhareach

Problem

While compiling anchor-lang = "0.28.0" project have got this error:
.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
My rustc -V: rustc 1.70.0 (90c541806 2023-05-31)

Metadata

Metadata

Assignees

No one assigned

    Labels

    communityCommunity contribution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions