1
Fork 0

Add error code for missing base expression in struct update syntax

This commit is contained in:
clubby789 2023-05-26 13:49:01 +00:00
parent 5876c8cdfd
commit f1b8b7d7ae
5 changed files with 38 additions and 6 deletions

View file

@ -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,
}