type annotations needed for Box<_> #221

Closed
opened 2025-10-14 15:43:04 -06:00 by navan · 0 comments
Owner

Originally created by @alirezaalavi87 on 8/11/2024

I get this error when trying to build the app from arch AUR
https://aur.archlinux.org/packages/iamb

rustup: 1.27.1
rustc: 1.80.1

error[E0282]: type annotations needed for `Box<_>`
  --> /home/alireza/.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 imbl v2.0.3
   Compiling chacha20poly1305 v0.10.1
   Compiling vodozemac v0.5.1
   Compiling image v0.24.7
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: A failure occurred in build().
    Aborting...
error: failed to build 'iamb-0.0.9-1':
error: packages failed to build: iamb-0.0.9-1
*Originally created by @alirezaalavi87 on 8/11/2024* I get this error when trying to build the app from arch AUR https://aur.archlinux.org/packages/iamb rustup: 1.27.1 rustc: 1.80.1 ``` error[E0282]: type annotations needed for `Box<_>` --> /home/alireza/.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 imbl v2.0.3 Compiling chacha20poly1305 v0.10.1 Compiling vodozemac v0.5.1 Compiling image v0.24.7 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: A failure occurred in build(). Aborting... error: failed to build 'iamb-0.0.9-1': error: packages failed to build: iamb-0.0.9-1 ```
navan closed this issue 2025-10-14 15:43:05 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/iamb#221
No description provided.