NON_SNAKE_CASE in rustc_lint::nonstandard_style - Rust
Description: The `non_snake_case` lint detects variables, methods, functions, lifetime parameters and modules that don’t have snake case names.

Skip to main content

## NON_SNAKE_CASE

# Static NON_SNAKE_CASE

Source

    pub static NON_SNAKE_CASE: &Lint

Expand description

The `non_snake_case` lint detects variables, methods, functions, lifetime parameters and modules that don’t have snake case names.

#### §Example

    let MY_VALUE = 5;

{{produces}}

#### §Explanation

The preferred style for these identifiers is to use “snake case”, where all the characters are in lowercase, with words separated with a single underscore, such as `my_value`.