Struct rustc_trait_selection::errors::ClosureKindMismatch
source · pub struct ClosureKindMismatch {
pub closure_span: Span,
pub expected: ClosureKind,
pub found: ClosureKind,
pub cause_span: Span,
pub fn_once_label: Option<ClosureFnOnceLabel>,
pub fn_mut_label: Option<ClosureFnMutLabel>,
}
Fields§
§closure_span: Span
§expected: ClosureKind
§found: ClosureKind
§cause_span: Span
§fn_once_label: Option<ClosureFnOnceLabel>
§fn_mut_label: Option<ClosureFnMutLabel>
Trait Implementations§
source§impl<'__diagnostic_handler_sess, G> IntoDiagnostic<'__diagnostic_handler_sess, G> for ClosureKindMismatchwhere
G: EmissionGuarantee,
impl<'__diagnostic_handler_sess, G> IntoDiagnostic<'__diagnostic_handler_sess, G> for ClosureKindMismatchwhere G: EmissionGuarantee,
source§fn into_diagnostic(
self,
handler: &'__diagnostic_handler_sess Handler
) -> DiagnosticBuilder<'__diagnostic_handler_sess, G>
fn into_diagnostic( self, handler: &'__diagnostic_handler_sess Handler ) -> DiagnosticBuilder<'__diagnostic_handler_sess, G>
Write out as a diagnostic out of
Handler
.Auto Trait Implementations§
impl RefUnwindSafe for ClosureKindMismatch
impl !Send for ClosureKindMismatch
impl !Sync for ClosureKindMismatch
impl Unpin for ClosureKindMismatch
impl UnwindSafe for ClosureKindMismatch
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: 88 bytes