rust/tests/ui/label/label-beginning-with-underscore.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
160 B
Rust
Raw Normal View History

2019-11-14 12:05:03 -06:00
//@ check-pass
#![deny(unused_labels)]
fn main() {
// `unused_label` shouldn't warn labels beginning with `_`
'_unused: loop {
break;
}
}