use subdiagnostic for sugesting add let

This commit is contained in:
yukang 2022-11-08 16:04:14 +08:00
parent 667b15bb0e
commit 9e7d2287cd
5 changed files with 21 additions and 7 deletions

View file

@ -425,7 +425,7 @@ pub(crate) struct ExpectedExpressionFoundLet {
pub(crate) struct ExpectedEqForLetExpr {
#[primary_span]
pub span: Span,
#[suggestion_verbose(applicability = "maybe-incorrect", code = "=")]
#[suggestion(applicability = "maybe-incorrect", code = "=", style = "verbose")]
pub sugg_span: Span,
}