Closed
Description
Types of a
and b
in this code below cannot be inferred by rust-analyzer, but it compiles fine with rustc.
// edition = "2021"
fn main() {
let [a, b] = vec![1u32, 2u32].try_into().unwrap();
// ^ {unknown}
}
rust-analyzer version: 2024-02-19
rustc version: rustc 1.76.0 (07dca489a 2024-02-04)
relevant settings: N/A