diff options
| author | Michael Baikov <manpacket@gmail.com> | 2024-05-24 11:20:33 -0400 |
|---|---|---|
| committer | Michael Baikov <manpacket@gmail.com> | 2024-05-24 11:20:33 -0400 |
| commit | b70fb4159be7ea3e549a242cf7a6e4ebcb41f168 (patch) | |
| tree | bfc702984efabb3f7fd3776fcf0e0372a3989552 /compiler/rustc_resolve/src/errors.rs | |
| parent | d6e4fe569c84c6a9d20690f139ad15a3d3da9550 (diff) | |
| download | rust-b70fb4159be7ea3e549a242cf7a6e4ebcb41f168.tar.gz rust-b70fb4159be7ea3e549a242cf7a6e4ebcb41f168.zip | |
And more general error
Diffstat (limited to 'compiler/rustc_resolve/src/errors.rs')
| -rw-r--r-- | compiler/rustc_resolve/src/errors.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/rustc_resolve/src/errors.rs b/compiler/rustc_resolve/src/errors.rs index e9989b803e8..0620f3d709e 100644 --- a/compiler/rustc_resolve/src/errors.rs +++ b/compiler/rustc_resolve/src/errors.rs @@ -891,6 +891,14 @@ pub(crate) struct LendingIteratorReportError { pub(crate) ty: Span, } +#[derive(Diagnostic)] +#[diag(resolve_anonymous_livetime_non_gat_report_error)] +pub(crate) struct AnonymousLivetimeNonGatReportError { + #[primary_span] + #[label] + pub(crate) lifetime: Span, +} + #[derive(Subdiagnostic)] #[multipart_suggestion( resolve_elided_anonymous_lifetime_report_error_suggestion, |
