Better error message in ed 2015

This commit is contained in:
Michael Goulet
2024-01-26 17:15:43 +00:00
parent cd2fd34ca6
commit 54db272cc9
6 changed files with 76 additions and 24 deletions

View File

@@ -1588,6 +1588,15 @@ pub(crate) struct AsyncMoveBlockIn2015 {
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(parse_async_bound_modifier_in_2015)]
pub(crate) struct AsyncBoundModifierIn2015 {
#[primary_span]
pub span: Span,
#[subdiagnostic]
pub help: HelpUseLatestEdition,
}
#[derive(Diagnostic)]
#[diag(parse_self_argument_pointer)]
pub(crate) struct SelfArgumentPointer {