diff options
| author | Michael Goulet <michael@errs.io> | 2023-04-10 22:16:17 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-04-10 22:19:46 +0000 |
| commit | 24cbf81b8546beb8193217316acf4ded4117b4af (patch) | |
| tree | 52b837ac48cca0a95f79720034d6f131acdd2cb8 /compiler/rustc_parse/src/errors.rs | |
| parent | 2a198c7f62a6dea507ba950750bc928237ad7a00 (diff) | |
| download | rust-24cbf81b8546beb8193217316acf4ded4117b4af.tar.gz rust-24cbf81b8546beb8193217316acf4ded4117b4af.zip | |
Remove `..` from return type notation
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
| -rw-r--r-- | compiler/rustc_parse/src/errors.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs index aead216b61c..069217165fa 100644 --- a/compiler/rustc_parse/src/errors.rs +++ b/compiler/rustc_parse/src/errors.rs @@ -2324,3 +2324,11 @@ pub(crate) struct BadReturnTypeNotationOutput { #[suggestion(code = "", applicability = "maybe-incorrect")] pub span: Span, } + +#[derive(Diagnostic)] +#[diag(parse_bad_return_type_notation_dotdot)] +pub(crate) struct BadReturnTypeNotationDotDot { + #[primary_span] + #[suggestion(code = "", applicability = "maybe-incorrect")] + pub span: Span, +} |
