You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the guide avm install latest , this issue occurs
error[E0282]: type annotations needed for `Box<_>`
--> /home/round00/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.29/src/format_description/parse/mod.rs:83:9
|
83 | let items = format_items
| ^^^^^
...
86 | Ok(items.into())
| ---- type must be known at this point
|
help: consider giving `items` an explicit type, where the placeholders `_` are specified
|
83 | let items: Box<_> = format_items
| ++++++++
Compiling asn1-rs-derive v0.4.0
Compiling displaydoc v0.2.4
Compiling portable-atomic v1.4.3
For more information about this error, try `rustc --explain E0282`.
error: could not compile `time` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `anchor-cli v0.30.1 (https://github.com/coral-xyz/anchor?tag=v0.30.1#e6d7dafe)`, intermediate artifacts can be found at `/tmp/cargo-installcZj4Zc`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Error: Failed to install 0.30.1, is it a valid version?
my cargo version is cargo 1.80.0 (376290515 2024-07-16), and rustc version is rustc 1.80.0 (051478957 2024-07-21).
I'm running it on a wsl2 Ubuntu 22.04 system. How should I continue ? Is it alright to add the missing type annotation ? I'm willing to help fix it if possible.
Thanks in advance for any suggestions.
The text was updated successfully, but these errors were encountered:
Hello~ I'm new to rust and solana and anchor.
Following the guide
avm install latest
, this issue occursmy cargo version is
cargo 1.80.0 (376290515 2024-07-16)
, and rustc version isrustc 1.80.0 (051478957 2024-07-21)
.I'm running it on a wsl2 Ubuntu 22.04 system. How should I continue ? Is it alright to add the missing type annotation ? I'm willing to help fix it if possible.
Thanks in advance for any suggestions.
The text was updated successfully, but these errors were encountered: