UNUSED_IMPORTS in rustc_lint::builtin - Rust
Description: The `unused_imports` lint detects imports that are never used.

Skip to main content

## UNUSED_IMPORTS

# Static UNUSED_IMPORTS

Source

    pub static UNUSED_IMPORTS: &'static Lint

Expand description

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`.