Subdiagnostic in rustc_macros - Rust
Description: API documentation for the Rust `Subdiagnostic` derive in crate `rustc_macros`.

Skip to main content

## Subdiagnostic

# Derive Macro Subdiagnostic

Source

    #[derive(Subdiagnostic)]
    {
        // Attributes available to this derive:
        #[label]
        #[help]
        #[help_once]
        #[note]
        #[note_once]
        #[warning]
        #[subdiagnostic]
        #[suggestion]
        #[suggestion_short]
        #[suggestion_hidden]
        #[suggestion_verbose]
        #[multipart_suggestion]
        #[multipart_suggestion_short]
        #[multipart_suggestion_hidden]
        #[primary_span]
        #[suggestion_part]
        #[applicability]
    }