After running git clone git@github.com:sobelio/llm-chain.git --recursive and cd into its root directory, I ran cargo check and got the following error:
...
Compiling hashbrown v0.14.3
Checking tokio v1.35.1
Compiling chrono-tz-build v0.2.1
error[E0282]: type annotations needed for `Box<_>`
--> /home/laios54/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.31/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
| ++++++++
Checking ignore v0.4.22
Checking futures-util v0.3.30
...
For more information about this error, try `rustc --explain E0282`.
error: could not compile `time` (lib) due to 1 previous error
After running cargo update the error disappeared. I have no idea why this occurred, but just updating the dependencies could resolve this problem.
The system is Manjaro Linux x86_64 with kernel 6.8.11-1-MANJARO, and the rust toolchain version is 1.80.0-nightly (7a6fad098 2024-05-31).
It seems it's the nightly toolchain causing this issue. After switching to stable rust the problem disappeared.
After running
git clone git@github.com:sobelio/llm-chain.git --recursive
and cd into its root directory, I rancargo check
and got the following error:After running
cargo update
the error disappeared. I have no idea why this occurred, but just updating the dependencies could resolve this problem.The system is Manjaro Linux x86_64 with kernel 6.8.11-1-MANJARO, and the rust toolchain version is 1.80.0-nightly (7a6fad098 2024-05-31).
It seems it's the nightly toolchain causing this issue. After switching to stable rust the problem disappeared.