-
Couldn't load subscription status.
- Fork 13.9k
Emit specific message for time<=0.3.35 #129343
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| #![crate_name = "time"] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remark: technically I believe we would also trigger the diagnostic for any crates named |
||
|
|
||
| fn main() { | ||
| let items = Box::new(vec![]); //~ ERROR E0282 | ||
| //~^ NOTE type must be known at this point | ||
| //~| NOTE this is an inference error on crate `time` caused by an API change in Rust 1.80.0; update `time` to version `>=0.3.35` | ||
| items.into(); | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| error[E0282]: type annotations needed for `Box<Vec<_>>` | ||
| --> $DIR/detect-old-time-version-format_description-parse.rs:4:9 | ||
| | | ||
| LL | let items = Box::new(vec![]); | ||
| | ^^^^^ ---------------- type must be known at this point | ||
| | | ||
| = note: this is an inference error on crate `time` caused by an API change in Rust 1.80.0; update `time` to version `>=0.3.35` by calling `cargo update` | ||
|
|
||
| error: aborting due to 1 previous error | ||
|
|
||
| For more information about this error, try `rustc --explain E0282`. |
Uh oh!
There was an error while loading. Please reload this page.