Closed
Description
rust-analyzer version: rust-analyzer version: 7e95c14 2022-05-17 stable
rustc version: rustc 1.61.0 (fe5b13d68 2022-05-18)
relevant settings: none
Rust Analyzer gets confused about the tuple parameters in the following code (the logic here is dumb but it's simply to illustrate):
fn main() {
let mut item = None;
loop {
if let Some((id, _, _)) = item {
if id == 1 {
break;
}
}
item = Some((1, 2.5, String::new()));
}
}
The result is this: