-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
A-tytype system / type inference / traits / method resolutiontype system / type inference / traits / method resolutionC-bugCategory: bugCategory: bug
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:
Metadata
Metadata
Assignees
Labels
A-tytype system / type inference / traits / method resolutiontype system / type inference / traits / method resolutionC-bugCategory: bugCategory: bug
