From abeb003df47de4a1b7aa36a7c4d7987d8cf40ace Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 14 Jul 2020 14:57:33 +0200 Subject: Allow multiline annotations --- crates/ra_hir_ty/src/diagnostics/match_check.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/ra_hir_ty/src/diagnostics') diff --git a/crates/ra_hir_ty/src/diagnostics/match_check.rs b/crates/ra_hir_ty/src/diagnostics/match_check.rs index ba48b51b5..95f272811 100644 --- a/crates/ra_hir_ty/src/diagnostics/match_check.rs +++ b/crates/ra_hir_ty/src/diagnostics/match_check.rs @@ -1162,12 +1162,14 @@ fn main() { match a { Either::A { } => (), //^^^ Missing structure fields: + // | - foo Either::B => (), } match a { //^ Missing match arm Either::A { } => (), } //^^^ Missing structure fields: + // | - foo match a { Either::A { foo: true } => (), -- cgit v1.2.3