static UNSAFE_CODE: &'static Lint
Expand description

The unsafe_code lint catches usage of unsafe code.

Example

#![deny(unsafe_code)]
fn main() {
    unsafe {

    }
}

{{produces}}

Explanation

This lint is intended to restrict the usage of unsafe, which can be difficult to use correctly.