Rust 1.46.0 发布了,此版本带来了以下更新内容: 改进 const fn 现在可以在 const fn 中使用几种核心语言功能: if, if let, and match while, while let, and loop the && and || operators 还可以转换为 slice: const fn foo() { let x = [1, 2, 3, 4, 5]; // cast the array to a slice let y: &[_] ... Rust 1.46.0 稳定版发布下载地址