diff options
| author | Michael Goulet <michael@errs.io> | 2024-06-27 13:07:03 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-07-10 17:15:02 -0400 |
| commit | 32c8bfdb11e519c6608ead730b6dfafc6cafb9c5 (patch) | |
| tree | db8c5c974ef4f826d6ef3d22b61799864913c05a /compiler/rustc_parse/src/errors.rs | |
| parent | e8445818d49fe968b35a130c66071c1b56498f93 (diff) | |
| download | rust-32c8bfdb11e519c6608ead730b6dfafc6cafb9c5.tar.gz rust-32c8bfdb11e519c6608ead730b6dfafc6cafb9c5.zip | |
Improve error message
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
| -rw-r--r-- | compiler/rustc_parse/src/errors.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs index 3ae9b6dad99..6738cc4a120 100644 --- a/compiler/rustc_parse/src/errors.rs +++ b/compiler/rustc_parse/src/errors.rs @@ -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, +} |
