Compilation error: type annotations needed for `Box<_>`
Cannot compile sinuous.
error[E0282]: type annotations needed for `Box<_>`
--> /home/sigurd/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.28/src/format_description/parse/mod.rs:83:9
|
83 | let items = format_items
| ^^^^^
...
86 | Ok(items.into())
| ---- type must be known at this point
|
I guess wether or not you get away with type inference here depends on the rust version
I'm sorry, just realized this is an error in a dependency, not sinuous. Moved to here.
According to this comment, running cargo update in the workspace before building solves this. It's an install script issue, not a dependency issue.
Tried installing manually by cloning the repo and doing cargo install and it worked fine right out of the box.
Adding the line
cargo update
before
cargo build --release --locked --target-dir=target
in the PKGBUILD file belonging to the aur works! Got it to work by cloning the aur git repo, adding the line, then running makepkg.
Sorry I never replied. This one a rare occurence of a new version of the rust compiler breaking a dependency. This should have been fixed a long time ago now.