Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/infer.rs')
| -rw-r--r-- | crates/hir-ty/src/infer.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/hir-ty/src/infer.rs b/crates/hir-ty/src/infer.rs index 333219c5af..5dbd5a779e 100644 --- a/crates/hir-ty/src/infer.rs +++ b/crates/hir-ty/src/infer.rs @@ -455,6 +455,10 @@ pub enum InferenceDiagnostic { at_point: Span, top_term: Option<StoredGenericArg>, }, + UnionMustHaveExactlyOneField { + #[type_visitable(ignore)] + expr: ExprId, + }, } /// A mismatch between an expected and an inferred type. |