Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/infer/pat.rs')
-rw-r--r--crates/hir-ty/src/infer/pat.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir-ty/src/infer/pat.rs b/crates/hir-ty/src/infer/pat.rs
index 8703b85e33..f1af8a0b73 100644
--- a/crates/hir-ty/src/infer/pat.rs
+++ b/crates/hir-ty/src/infer/pat.rs
@@ -1701,7 +1701,7 @@ https://doc.rust-lang.org/reference/types.html#trait-objects";
// We have a variable-length pattern and don't know the array length.
// This happens if we have e.g.,
// `let [a, b, ..] = arr` where `arr: [T; N]` where `const N: usize`.
- // FIXME: Emit an error: cannot pattern-match on an array without a fixed length.
+ self.push_diagnostic(InferenceDiagnostic::ArrayPatternWithoutFixedLength { pat });
};
// If we get here, we must have emitted an error.