Enum rustc_trait_selection::traits::util::traits::SelectionError
source · [−]pub enum SelectionError<'tcx> {
Unimplemented,
OutputTypeParameterMismatch(Binder<TraitRef>, Binder<TraitRef>, TypeError),
TraitNotObjectSafe(DefId),
NotConstEvaluatable(NotConstEvaluatable),
Overflow,
ErrorReporting,
Ambiguous(Vec<DefId, Global>),
}Variants
Unimplemented
The trait is not implemented.
OutputTypeParameterMismatch(Binder<TraitRef>, Binder<TraitRef>, TypeError)
After a closure impl has selected, its “outputs” were evaluated
(which for closures includes the “input” type params) and they
didn’t resolve. See confirm_poly_trait_refs for more.
TraitNotObjectSafe(DefId)
The trait pointed by DefId is not object safe.
NotConstEvaluatable(NotConstEvaluatable)
A given constant couldn’t be evaluated.
Overflow
Exceeded the recursion depth during type projection.
ErrorReporting
Signaling that an error has already been emitted, to avoid multiple errors being shown.
Ambiguous(Vec<DefId, Global>)
Multiple applicable impls where found. The DefIds correspond to
all the impls’ Items.
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for SelectionError
impl<'tcx> Send for SelectionError
impl<'tcx> Sync for SelectionError
impl<'tcx> Unpin for SelectionError
impl<'tcx> !UnwindSafe for SelectionError
Blanket Implementations
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: 88 bytes
Size for each variant:
Unimplemented: 0 bytesOutputTypeParameterMismatch: 87 bytesTraitNotObjectSafe: 11 bytesNotConstEvaluatable: 1 byteOverflow: 0 bytesErrorReporting: 0 bytesAmbiguous: 31 bytes