A pattern for a struct fails to specify a sub-pattern
for every one of the struct's fields. - pattern does
not mention fields `x`, `y`
gcc/rust/ChangeLog:
* typecheck/rust-hir-type-check-pattern.cc (TypeCheckPattern::visit): called rust_error_at
Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
i++;
}
- rust_error_at (pattern.get_locus (), "pattern does not mention fields %s",
+ rust_error_at (pattern.get_locus (), ErrorCode ("E0027"),
+ "pattern does not mention fields %s",
missing_fields_str.c_str ());
}
}