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

Compilation error: type annotations needed for Box<_> #717

Closed
sigurd4 opened this issue Nov 19, 2024 · 3 comments
Closed

Compilation error: type annotations needed for Box<_> #717

sigurd4 opened this issue Nov 19, 2024 · 3 comments
Labels
C-duplicate Category: exact duplicate C-invalid Category: no issue exists or the issue cannot be reproduced

Comments

@sigurd4
Copy link

sigurd4 commented Nov 19, 2024

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

@CryZe
Copy link
Contributor

CryZe commented Nov 19, 2024

Run cargo update and then the issue is gone. This is a well known problem.

@sigurd4
Copy link
Author

sigurd4 commented Nov 19, 2024

I'm trying to install an aur package with this as a dependency, so i guess the install script needs to run cargo update for it to work.

Installing the package manually works fine, so i'll close this and re-open abusch/sinuous#137.

@sigurd4 sigurd4 closed this as completed Nov 19, 2024
@jhpratt
Copy link
Member

jhpratt commented Nov 19, 2024

Here I thought that unpinning an issue after six months would have been sufficient…

@time-rs time-rs locked as resolved and limited conversation to collaborators Nov 19, 2024
@jhpratt jhpratt added C-duplicate Category: exact duplicate C-invalid Category: no issue exists or the issue cannot be reproduced labels Nov 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C-duplicate Category: exact duplicate C-invalid Category: no issue exists or the issue cannot be reproduced
Projects
None yet
Development

No branches or pull requests

3 participants