[][src]Static rustc_ap_rustc_session::lint::builtin::UNUSED_IMPORTS

pub static  UNUSED_IMPORTS: &Lint

The unused_imports lint detects imports that are never used.

Example

use std::collections::HashMap;

{{produces}}

Explanation

Unused imports may signal a mistake or unfinished code, and clutter the code, and should be removed. If you intended to re-export the item to make it available outside of the module, add a visibility modifier like pub.