]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_parse/src/errors.rs
Rollup merge of #104137 - StackDoubleFlow:err-lsc-unsupported, r=bjorn3
[rust.git] / compiler / rustc_parse / src / errors.rs
index a39398950a53352545dbc3916c1c2dc6eb11559f..2b17cea97949a2cdfd1cecfcd17a56af5387dea6 100644 (file)
@@ -1205,6 +1205,14 @@ pub(crate) struct SelfParamNotFirst {
     pub span: Span,
 }
 
+#[derive(Diagnostic)]
+#[diag(parser_invalid_identifier_with_leading_number)]
+pub(crate) struct InvalidIdentiferStartsWithNumber {
+    #[primary_span]
+    #[label]
+    pub span: Span,
+}
+
 #[derive(Diagnostic)]
 #[diag(parser_const_generic_without_braces)]
 pub(crate) struct ConstGenericWithoutBraces {