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

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