Skip to content

Commit bbf8317

Browse files
committed
Add test
1 parent 9bd9587 commit bbf8317

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#![crate_name = "time"]
2+
3+
fn main() {
4+
let items = Box::new(vec![]); //~ ERROR E0282
5+
//~^ NOTE type must be known at this point
6+
//~| NOTE this is an inference error on crate `time` caused by a change in Rust 1.80.0; update `time` to version `>=0.3.36`
7+
items.into();
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
error[E0282]: type annotations needed for `Box<Vec<_>>`
2+
--> $DIR/detect-old-time-version-format_description-parse.rs:4:9
3+
|
4+
LL | let items = Box::new(vec![]);
5+
| ^^^^^ ---------------- type must be known at this point
6+
|
7+
= note: this is an inference error on crate `time` caused by a change in Rust 1.80.0; update `time` to version `>=0.3.36`
8+
9+
error: aborting due to 1 previous error
10+
11+
For more information about this error, try `rustc --explain E0282`.

0 commit comments

Comments
 (0)