Diagnose mismatched arg count for tuple struct patterns

This commit is contained in:
Lukas Wirth 2023-09-08 14:31:26 +02:00
parent 297ed70a23
commit 8654a098c7
7 changed files with 144 additions and 20 deletions

View file

@ -228,6 +228,11 @@ pub enum InferenceDiagnostic {
expected: usize,
found: usize,
},
MismatchedTupleStructPatArgCount {
pat: ExprOrPatId,
expected: usize,
found: usize,
},
ExpectedFunction {
call_expr: ExprId,
found: Ty,