Rollup merge of #131899 - compiler-errors:placeholder, r=lqd
Mark unexpected variant res suggestion as having placeholders Fixes #131878
This commit is contained in:
commit
ff55ec0336
1 changed files with 1 additions and 1 deletions
|
@ -419,7 +419,7 @@ fn report_unexpected_variant_res(
|
|||
}
|
||||
}
|
||||
|
||||
err.multipart_suggestion_verbose(descr, suggestion, Applicability::MaybeIncorrect);
|
||||
err.multipart_suggestion_verbose(descr, suggestion, Applicability::HasPlaceholders);
|
||||
err
|
||||
}
|
||||
Res::Def(DefKind::Variant, _) if expr.is_none() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue