Closed
Description
Code
I tried this code:
[package]
name = "regression"
version = "0.1.0"
edition = "2021"
[dependencies]
time = { version = "=0.3.34", features = ["parsing"] }
fn main() {}
I expected to see this happen: Compile successfully.
Instead, this happened: Compilation failed with the following.
error[E0282]: type annotations needed for `Box<_>`
--> /home/oblique/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.34/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
| ++++++++
For more information about this error, try `rustc --explain E0282`.
error: could not compile `time` (lib) due to 1 previous error
Version it worked on
It most recently worked on:
rustc --version --verbose
:
rustc 1.80.0-nightly (b1ec1bd65 2024-05-18)
binary: rustc
commit-hash: b1ec1bd65f89c1375d2cf2fb733a87ef390276d3
commit-date: 2024-05-18
host: x86_64-unknown-linux-gnu
release: 1.80.0-nightly
LLVM version: 18.1.4
Version with regression
rustc --version --verbose
:
rustc 1.80.0-nightly (d84b90375 2024-05-19)
binary: rustc
commit-hash: d84b9037541f45dc2c52a41d723265af211c0497
commit-date: 2024-05-19
host: x86_64-unknown-linux-gnu
release: 1.80.0-nightly
LLVM version: 18.1.4
@rustbot modify labels: +regression-from-stable-to-nightly-regression-untriaged