pub enum TypeMismatchSource<'tcx> {
Ty(Ty<'tcx>),
Arg {
call_expr: &'tcx Expr<'tcx>,
incompatible_arg: usize,
},
}
Variants§
Ty(Ty<'tcx>)
Expected the binding to have the given type, but it was found to have a different type. Find out when that type first became incompatible.
Arg
When we fail during method argument checking, try to find out if a previous expression has constrained the method’s receiver in a way that makes the argument’s type incompatible.
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for TypeMismatchSource<'tcx>
impl<'tcx> !Send for TypeMismatchSource<'tcx>
impl<'tcx> !Sync for TypeMismatchSource<'tcx>
impl<'tcx> Unpin for TypeMismatchSource<'tcx>
impl<'tcx> !UnwindSafe for TypeMismatchSource<'tcx>
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: 16 bytes
Size for each variant:
Ty
: 16 bytesArg
: 16 bytes