Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/infer/expr.rs')
| -rw-r--r-- | crates/hir-ty/src/infer/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir-ty/src/infer/expr.rs b/crates/hir-ty/src/infer/expr.rs index 2b19c445ed..327975d766 100644 --- a/crates/hir-ty/src/infer/expr.rs +++ b/crates/hir-ty/src/infer/expr.rs @@ -997,7 +997,7 @@ impl<'db> InferenceContext<'_, 'db> { // Prohibit struct expressions when non-exhaustive flag is set. if self.has_applicable_non_exhaustive(variant.into()) { - // FIXME: Emit an error. + self.push_diagnostic(InferenceDiagnostic::NonExhaustiveRecordExpr { expr }); } self.check_record_expr_fields(adt_ty, expected, expr, variant, fields, base_expr); |