Fix test mark placement

This commit is contained in:
Aleksey Kladov 2019-11-21 17:09:38 +03:00
parent 952405cb41
commit a1346bba5c
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,6 @@ where
None => self.collect_expr_opt(condition.expr()),
// if let -- desugar to match
Some(pat) => {
tested_by!(infer_resolve_while_let);
let pat = self.collect_pat(pat);
let match_expr = self.collect_expr_opt(condition.expr());
let placeholder_pat = self.missing_pat();
@ -192,6 +191,7 @@ where
None => self.collect_expr_opt(condition.expr()),
// if let -- desugar to match
Some(pat) => {
tested_by!(infer_resolve_while_let);
let pat = self.collect_pat(pat);
let match_expr = self.collect_expr_opt(condition.expr());
let placeholder_pat = self.missing_pat();

View File

@ -384,7 +384,7 @@ mod tests {
}
#[test]
fn infer_resolve_while_let() {
fn while_let_desugaring() {
covers!(infer_resolve_while_let);
do_check_local_name(
r#"