UNKNOWN_CRATE_TYPES in rustc_lint_defs::builtin - Rust
Description: The `unknown_crate_types` lint detects an unknown crate type found in a `crate_type` attribute.

Skip to main content

## UNKNOWN_CRATE_TYPES

# Static UNKNOWN_CRATE_TYPES

Source

    pub static UNKNOWN_CRATE_TYPES: &Lint

Expand description

The `unknown_crate_types` lint detects an unknown crate type found in a `crate_type` attribute.

#### §Example

ⓘ

    #![crate_type="lol"]
    fn main() {}

{{produces}}

#### §Explanation

An unknown value give to the `crate_type` attribute is almost certainly a mistake.