error[E0282]: type annotations needed for `Box<_>`

問題

2024-09-10T09:40:18.716540Z ERROR FetchBuildDataError: warning: both /Users//.cargo/config and /Users/l/.cargo/config.toml exist. Using /Users/username/.cargo/config
warning: both /Users/lu/.cargo/config and /Users//.cargo/config.toml exist. Using /Users/l/.cargo/config
error[E0282]: type annotations needed for Box<_>
--> /Users/lu/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/time-0.3.26/src/format_description/parse/mod.rs:83:9
|
83 | let items = format_items
| ^^^^^
...
86 | Ok(items.into())
| ---- 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.

error: could not compile time (lib) due to 2 previous errors

原因

寫在保存信息中,是 rust 1.80.0 更新的一個break change

解決方法

cargo update
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容