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 9416157 commit 36c110eCopy full SHA for 36c110e
crates/ra_hir_ty/src/_match.rs
@@ -1334,6 +1334,20 @@ mod tests {
1334
check_diagnostic(content);
1335
}
1336
1337
+ #[test]
1338
+ fn malformed_match_arm_tuple_missing_pattern() {
1339
+ let content = r"
1340
+ fn test_fn() {
1341
+ match (0) {
1342
+ () => (),
1343
+ }
1344
1345
+ ";
1346
+
1347
+ // Match arms with the incorrect type are filtered out.
1348
+ check_diagnostic(content);
1349
1350
1351
#[test]
1352
fn malformed_match_arm_tuple_enum_missing_pattern() {
1353
let content = r"
0 commit comments