Static rustc_lint::unused::PATH_STATEMENTS

source ·
pub static PATH_STATEMENTS: &Lint
Expand description

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.