aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_ty/src/diagnostics/match_check.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_ty/src/diagnostics/match_check.rs')
-rw-r--r--crates/ra_hir_ty/src/diagnostics/match_check.rs2
1 files changed, 2 insertions, 0 deletions
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() {
1162 match a { 1162 match a {
1163 Either::A { } => (), 1163 Either::A { } => (),
1164 //^^^ Missing structure fields: 1164 //^^^ Missing structure fields:
1165 // | - foo
1165 Either::B => (), 1166 Either::B => (),
1166 } 1167 }
1167 match a { 1168 match a {
1168 //^ Missing match arm 1169 //^ Missing match arm
1169 Either::A { } => (), 1170 Either::A { } => (),
1170 } //^^^ Missing structure fields: 1171 } //^^^ Missing structure fields:
1172 // | - foo
1171 1173
1172 match a { 1174 match a {
1173 Either::A { foo: true } => (), 1175 Either::A { foo: true } => (),