pub trait AddToDiagnostic {
    fn add_to_diagnostic(self, diag: &mut Diagnostic);
}
Expand description

Trait implemented by error types. This should not be implemented manually. Instead, use #[derive(Subdiagnostic)] – see rustc_macros::Subdiagnostic.

Required Methods

Add a subdiagnostic to an existing diagnostic.

Implementors