fix match arm false positive

This commit is contained in:
Josh Mcguigan 2020-04-10 20:14:53 -07:00
parent beb755caa2
commit d1338354ca
2 changed files with 16 additions and 12 deletions

View file

@ -1315,8 +1315,9 @@ mod tests {
}
";
// Match arms with the incorrect type are filtered out.
check_diagnostic(content);
// Match statements with arms that don't match the
// expression pattern do not fire this diagnostic.
check_no_diagnostic(content);
}
#[test]
@ -1330,8 +1331,9 @@ mod tests {
}
";
// Match arms with the incorrect type are filtered out.
check_diagnostic(content);
// Match statements with arms that don't match the
// expression pattern do not fire this diagnostic.
check_no_diagnostic(content);
}
#[test]
@ -1344,8 +1346,9 @@ mod tests {
}
";
// Match arms with the incorrect type are filtered out.
check_diagnostic(content);
// Match statements with arms that don't match the
// expression pattern do not fire this diagnostic.
check_no_diagnostic(content);
}
#[test]