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

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

Required Methods

Add a subdiagnostic to an existing diagnostic.

Implementors