Static rustc_ap_rustc_lint_defs::builtin::UNUSED_LABELS[][src]

pub static UNUSED_LABELS: &Lint

The unused_labels lint detects labels that are never used.

Example

'unused_label: loop {}

{{produces}}

Explanation

Unused labels may signal a mistake or unfinished code. To silence the warning for the individual label, prefix it with an underscore such as '_my_label:.