use subdiagnostic for sugesting add let
This commit is contained in:
parent
667b15bb0e
commit
9e7d2287cd
5 changed files with 21 additions and 7 deletions
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue