feature_err_issue in rustc_session::errors - Rust
Description: Construct a diagnostic for a feature gate error.

Skip to main content

## feature_err_issue

# Function feature_err_issue

Source

    pub fn feature_err_issue(
        sess: &Session,
        feature: Symbol,
        span: impl Into<MultiSpan>,
        issue: GateIssue,
        explain: impl Into<DiagMessage>,
    ) -> Diag<'_>

Expand description

Construct a diagnostic for a feature gate error.

This variant allows you to control whether it is a library or language feature. Almost always, you want to use this for a language feature. If so, prefer `feature_err`.