[−][src]Static rustc_lint::unused::PATH_STATEMENTS

pub static PATH_STATEMENTS: &Lint

The path_statements lint detects path statements with no effect.

Example

let x = 42;

x;

{{produces}}

Explanation

It is usually a mistake to have a statement that has no effect.