From 2abb4c99fe8a5839fe2910e90f3471e6308f6229 Mon Sep 17 00:00:00 2001 From: Dawer <7803845+iDawer@users.noreply.github.com> Date: Sat, 15 May 2021 00:09:17 +0500 Subject: Fix false positive "Missing match arm". --- crates/hir_ty/src/diagnostics/match_check.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/hir_ty/src/diagnostics') diff --git a/crates/hir_ty/src/diagnostics/match_check.rs b/crates/hir_ty/src/diagnostics/match_check.rs index e9762622f..6ee0529c6 100644 --- a/crates/hir_ty/src/diagnostics/match_check.rs +++ b/crates/hir_ty/src/diagnostics/match_check.rs @@ -1119,6 +1119,7 @@ fn main() { (true, false, true) => (), (true) => (), } + match (true, false) { (true,) => {} } match (0) { () => () } match Unresolved::Bar { Unresolved::Baz => () } } -- cgit v1.2.3