Struct rustc_infer::errors::MismatchedStaticLifetime
source · pub struct MismatchedStaticLifetime<'a> {
pub cause_span: Span,
pub unmet_lifetime_reqs: IntroducesStaticBecauseUnmetLifetimeReq,
pub expl: Option<RegionExplanation<'a>>,
pub does_not_outlive_static_from_impl: DoesNotOutliveStaticFromImpl,
pub implicit_static_lifetimes: Vec<ImplicitStaticLifetimeSubdiag>,
}
Fields§
§cause_span: Span
§unmet_lifetime_reqs: IntroducesStaticBecauseUnmetLifetimeReq
§expl: Option<RegionExplanation<'a>>
§does_not_outlive_static_from_impl: DoesNotOutliveStaticFromImpl
§implicit_static_lifetimes: Vec<ImplicitStaticLifetimeSubdiag>
Trait Implementations§
source§impl<'__diagnostic_handler_sess, 'a, G> IntoDiagnostic<'__diagnostic_handler_sess, G> for MismatchedStaticLifetime<'a>where
G: EmissionGuarantee,
impl<'__diagnostic_handler_sess, 'a, G> IntoDiagnostic<'__diagnostic_handler_sess, G> for MismatchedStaticLifetime<'a>where G: EmissionGuarantee,
source§fn into_diagnostic(
self,
handler: &'__diagnostic_handler_sess Handler
) -> DiagnosticBuilder<'__diagnostic_handler_sess, G>
fn into_diagnostic( self, handler: &'__diagnostic_handler_sess Handler ) -> DiagnosticBuilder<'__diagnostic_handler_sess, G>
Write out as a diagnostic out of
Handler
.Auto Trait Implementations§
impl<'a> RefUnwindSafe for MismatchedStaticLifetime<'a>
impl<'a> !Send for MismatchedStaticLifetime<'a>
impl<'a> !Sync for MismatchedStaticLifetime<'a>
impl<'a> Unpin for MismatchedStaticLifetime<'a>
impl<'a> UnwindSafe for MismatchedStaticLifetime<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 168 bytes