diff options
| author | Michael Goulet <michael@errs.io> | 2023-03-16 22:00:08 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-03-28 01:14:28 +0000 |
| commit | 8b592db27afdc9edac084520bca98508da53c996 (patch) | |
| tree | 3a2638e8dd3656cfdb5aeed9b68e349efb2c2183 /compiler/rustc_parse/src/errors.rs | |
| parent | 104aacb49fb37265fb923e3b779de3c388abd92c (diff) | |
| download | rust-8b592db27afdc9edac084520bca98508da53c996.tar.gz rust-8b592db27afdc9edac084520bca98508da53c996.zip | |
Add `(..)` syntax for RTN
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 a9d116012ae..aead216b61c 100644 --- a/compiler/rustc_parse/src/errors.rs +++ b/compiler/rustc_parse/src/errors.rs @@ -2316,3 +2316,11 @@ pub struct BoxSyntaxRemoved<'a> { pub span: Span, pub code: &'a str, } + +#[derive(Diagnostic)] +#[diag(parse_bad_return_type_notation_output)] +pub(crate) struct BadReturnTypeNotationOutput { + #[primary_span] + #[suggestion(code = "", applicability = "maybe-incorrect")] + pub span: Span, +} |
