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

rust 1.80.0 build issue #1341

Closed
chenrui333 opened this issue Sep 13, 2024 · 2 comments
Closed

rust 1.80.0 build issue #1341

chenrui333 opened this issue Sep 13, 2024 · 2 comments

Comments

@chenrui333
Copy link

time crate needs to be updated to 0.3.36

see time-rs/time#693

related error log:

  error[E0282]: type annotations needed for `Box<_>`
    --> /Users/brew/Library/Caches/Homebrew/cargo_cache/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.34/src/format_description/parse/mod.rs:83:9
     |
  83 |     let items = format_items
     |         ^^^^^
  ...
  86 |     Ok(items.into())
     |              ---- type must be known at this point
     |
     = note: this is an inference error on crate `time` caused by an API change in Rust 1.80.0; update `time` to version `>=0.3.35` by calling `cargo update`
  
  For more information about this error, try `rustc --explain E0282`.
@vlad-sundunchan
Copy link

If you encounter the error type annotations needed for Box<_> when installing the Anchor CLI, try changing your Rust version to 1.79.0 and attempt the installation again.

rustup default 1.79.0

@qarmin
Copy link
Owner

qarmin commented Sep 26, 2024

Fixed by #1354

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

Successfully merging a pull request may close this issue.

3 participants