Enum rustc::ty::error::TypeError   
                   
                       [−]
                   
               [src]
pub enum TypeError<'tcx> {
    Mismatch,
    UnsafetyMismatch(ExpectedFound<Unsafety>),
    AbiMismatch(ExpectedFound<Abi>),
    Mutability,
    BoxMutability,
    PtrMutability,
    RefMutability,
    VecMutability,
    TupleSize(ExpectedFound<usize>),
    FixedArraySize(ExpectedFound<usize>),
    TyParamSize(ExpectedFound<usize>),
    ArgCount,
    RegionsDoesNotOutlive(Region, Region),
    RegionsNotSame(Region, Region),
    RegionsNoOverlap(Region, Region),
    RegionsInsufficientlyPolymorphic(BoundRegion, Region),
    RegionsOverlyPolymorphic(BoundRegion, Region),
    Sorts(ExpectedFound<Ty<'tcx>>),
    IntegerAsChar,
    IntMismatch(ExpectedFound<IntVarValue>),
    FloatMismatch(ExpectedFound<FloatTy>),
    Traits(ExpectedFound<DefId>),
    BuiltinBoundsMismatch(ExpectedFound<BuiltinBounds>),
    VariadicMismatch(ExpectedFound<bool>),
    CyclicTy,
    ConvergenceMismatch(ExpectedFound<bool>),
    ProjectionNameMismatched(ExpectedFound<Name>),
    ProjectionBoundsLength(ExpectedFound<usize>),
    TyParamDefaultMismatch(ExpectedFound<Default<'tcx>>),
}Unstable (
rustc_private)Variants
MismatchUnstable (
rustc_private)UnsafetyMismatch(ExpectedFound<Unsafety>)Unstable (
rustc_private)AbiMismatch(ExpectedFound<Abi>)Unstable (
rustc_private)MutabilityUnstable (
rustc_private)BoxMutabilityUnstable (
rustc_private)PtrMutabilityUnstable (
rustc_private)RefMutabilityUnstable (
rustc_private)VecMutabilityUnstable (
rustc_private)TupleSize(ExpectedFound<usize>)Unstable (
rustc_private)FixedArraySize(ExpectedFound<usize>)Unstable (
rustc_private)TyParamSize(ExpectedFound<usize>)Unstable (
rustc_private)ArgCountUnstable (
rustc_private)RegionsDoesNotOutlive(Region, Region)Unstable (
rustc_private)RegionsNotSame(Region, Region)Unstable (
rustc_private)RegionsNoOverlap(Region, Region)Unstable (
rustc_private)RegionsInsufficientlyPolymorphic(BoundRegion, Region)Unstable (
rustc_private)RegionsOverlyPolymorphic(BoundRegion, Region)Unstable (
rustc_private)Sorts(ExpectedFound<Ty<'tcx>>)Unstable (
rustc_private)IntegerAsCharUnstable (
rustc_private)IntMismatch(ExpectedFound<IntVarValue>)Unstable (
rustc_private)FloatMismatch(ExpectedFound<FloatTy>)Unstable (
rustc_private)Traits(ExpectedFound<DefId>)Unstable (
rustc_private)BuiltinBoundsMismatch(ExpectedFound<BuiltinBounds>)Unstable (
rustc_private)VariadicMismatch(ExpectedFound<bool>)Unstable (
rustc_private)CyclicTyUnstable (
rustc_private)ConvergenceMismatch(ExpectedFound<bool>)Unstable (
rustc_private)ProjectionNameMismatched(ExpectedFound<Name>)Unstable (
rustc_private)ProjectionBoundsLength(ExpectedFound<usize>)Unstable (
rustc_private)TyParamDefaultMismatch(ExpectedFound<Default<'tcx>>)Unstable (
rustc_private)Trait Implementations
impl<'tcx> Display for TypeError<'tcx>[src]
Explains the source of a type err in a short, human readable way. This is meant to be placed
in parentheses after some larger message. You should also invoke note_and_explain_type_err()
afterwards to present additional details, particularly when it comes to lifetime-related
errors.
impl<'a, 'tcx> Lift<'tcx> for TypeError<'a>[src]
type Lifted = TypeError<'tcx>
fn lift_to_tcx<'b, 'gcx>(&self, tcx: TyCtxt<'b, 'gcx, 'tcx>) -> Option<Self::Lifted>
Derived Implementations
impl<'tcx> Debug for TypeError<'tcx>[src]
impl<'tcx> Clone for TypeError<'tcx>[src]
fn clone(&self) -> TypeError<'tcx>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more