## INVALID_NULL_ARGUMENTS

# Static INVALID_NULL_ARGUMENTS

Source

    static INVALID_NULL_ARGUMENTS: &Lint

Expand description

The `invalid_null_arguments` lint checks for invalid usage of null pointers in arguments.

#### §Example

ⓘ

    // Undefined behavior
    unsafe { slice::from_raw_parts(ptr::null(), 0) };

{{produces}}

#### §Explanation

Calling methods whos safety invariants requires non-null ptr with a null pointer is Undefined Behavior!