From 54db272cc972f232cc50a7c6dff30140f904738a Mon Sep 17 00:00:00 2001 From: Michael Goulet Date: Fri, 26 Jan 2024 17:15:43 +0000 Subject: Better error message in ed 2015 --- compiler/rustc_parse/src/errors.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'compiler/rustc_parse/src/errors.rs') diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs index 4e4bf9bdad9..86a64d90deb 100644 --- a/compiler/rustc_parse/src/errors.rs +++ b/compiler/rustc_parse/src/errors.rs @@ -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 { -- cgit 1.4.1-3-g733a5