We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4b5275 commit 4d841dcCopy full SHA for 4d841dc
crates/hir_ty/src/diagnostics/match_check.rs
@@ -1379,6 +1379,20 @@ fn main() {
1379
}"#,
1380
);
1381
}
1382
+
1383
+ #[test]
1384
+ fn tuple_of_bools_with_ellipsis_in_middle_missing_arm() {
1385
+ check_diagnostics(
1386
+ r#"
1387
+fn main() {
1388
+ match (false, true, false) {
1389
+ //^^^^^^^^^^^^^^^^^^^^ Missing match arm
1390
+ (true, .., false) => (),
1391
+ }
1392
+}"#,
1393
+ );
1394
1395
1396
mod false_negatives {
1397
//! The implementation of match checking here is a work in progress. As we roll this out, we
1398
//! prefer false negatives to false positives (ideally there would be no false positives). This
0 commit comments