mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Fix test mark placement
This commit is contained in:
parent
952405cb41
commit
a1346bba5c
@ -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();
|
||||
|
@ -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#"
|
||||
|
Loading…
Reference in New Issue
Block a user