Enum rustc_infer::infer::error_reporting::Similar
source · enum Similar<'tcx> {
Adts {
expected: AdtDef<'tcx>,
found: AdtDef<'tcx>,
},
PrimitiveFound {
expected: AdtDef<'tcx>,
found: Ty<'tcx>,
},
PrimitiveExpected {
expected: Ty<'tcx>,
found: AdtDef<'tcx>,
},
}Variants§
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for Similar<'tcx>
impl<'tcx> !Send for Similar<'tcx>
impl<'tcx> !Sync for Similar<'tcx>
impl<'tcx> Unpin for Similar<'tcx>
impl<'tcx> !UnwindSafe for Similar<'tcx>
Blanket Implementations§
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: 24 bytes
Size for each variant:
Adts: 16 bytesPrimitiveFound: 16 bytesPrimitiveExpected: 16 bytes