Add error code for missing base expression in struct update syntax
This commit is contained in:
parent
5876c8cdfd
commit
f1b8b7d7ae
5 changed files with 38 additions and 6 deletions
|
@ -114,10 +114,10 @@ pub struct UnderscoreExprLhsAssign {
|
|||
}
|
||||
|
||||
#[derive(Diagnostic, Clone, Copy)]
|
||||
#[diag(ast_lowering_base_expression_double_dot)]
|
||||
#[diag(ast_lowering_base_expression_double_dot, code = "E0797")]
|
||||
pub struct BaseExpressionDoubleDot {
|
||||
#[primary_span]
|
||||
#[label]
|
||||
#[suggestion(code = "/* expr */", applicability = "has-placeholders", style = "verbose")]
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue