about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/errors.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-01-26 17:15:43 +0000
committerMichael Goulet <michael@errs.io>2024-01-31 16:59:19 +0000
commit54db272cc972f232cc50a7c6dff30140f904738a (patch)
tree9775fa1132e2714224af35dacb6b104dda3a39bc /compiler/rustc_parse/src/errors.rs
parentcd2fd34ca68f701ade233a980093ee4444f7da3a (diff)
downloadrust-54db272cc972f232cc50a7c6dff30140f904738a.tar.gz
rust-54db272cc972f232cc50a7c6dff30140f904738a.zip
Better error message in ed 2015
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
-rw-r--r--compiler/rustc_parse/src/errors.rs9
1 files changed, 9 insertions, 0 deletions
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
@@ -1589,6 +1589,15 @@ pub(crate) struct AsyncMoveBlockIn2015 {
 }
 
 #[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 {
     #[primary_span]