mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Diagnose mismatched arg count for tuple struct patterns
This commit is contained in:
parent
297ed70a23
commit
8654a098c7
7 changed files with 144 additions and 20 deletions
|
@ -228,6 +228,11 @@ pub enum InferenceDiagnostic {
|
|||
expected: usize,
|
||||
found: usize,
|
||||
},
|
||||
MismatchedTupleStructPatArgCount {
|
||||
pat: ExprOrPatId,
|
||||
expected: usize,
|
||||
found: usize,
|
||||
},
|
||||
ExpectedFunction {
|
||||
call_expr: ExprId,
|
||||
found: Ty,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue