Improve error message

This commit is contained in:
Michael Goulet
2024-06-27 13:07:03 -04:00
parent e8445818d4
commit 32c8bfdb11
8 changed files with 66 additions and 11 deletions

View File

@@ -3041,3 +3041,12 @@ pub struct UnsafeAttrOutsideUnsafeSuggestion {
#[suggestion_part(code = ")")]
pub right: Span,
}
#[derive(Diagnostic)]
#[diag(parse_binder_before_modifiers)]
pub struct BinderBeforeModifiers {
#[primary_span]
pub binder_span: Span,
#[label]
pub modifiers_span: Span,
}