[−][src]Enum rustc_mir::borrow_check::diagnostics::region_errors::RegionErrorKind
Variants
A generic bound failure for a type test (T: 'a).
Fields of TypeTestError
type_test: TypeTest<'tcx>An unexpected hidden region for an opaque type.
Fields of UnexpectedHiddenRegion
Higher-ranked subtyping error.
Fields of BoundUniversalRegionError
longer_fr: RegionVidThe placeholder free region.
error_element: RegionElementThe region element that erroneously must be outlived by longer_fr.
fr_origin: NLLRegionVariableOriginThe origin of the placeholder region.
Any other lifetime error.
Fields of RegionError
fr_origin: NLLRegionVariableOriginThe origin of the region.
longer_fr: RegionVidThe region that should outlive shorter_fr.
shorter_fr: RegionVidThe region that should be shorter, but we can't prove it.
is_reported: boolIndicates whether this is a reported error. We currently only report the first error encountered and leave the rest unreported so as not to overwhelm the user.
Trait Implementations
impl<'tcx> Clone for RegionErrorKind<'tcx>[src]
pub fn clone(&self) -> RegionErrorKind<'tcx>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'tcx> Debug for RegionErrorKind<'tcx>[src]
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for RegionErrorKind<'tcx>
impl<'tcx> !Send for RegionErrorKind<'tcx>
impl<'tcx> !Sync for RegionErrorKind<'tcx>
impl<'tcx> Unpin for RegionErrorKind<'tcx>
impl<'tcx> !UnwindSafe for RegionErrorKind<'tcx>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.