mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 09:03:18 +00:00
26 lines
573 B
Text
26 lines
573 B
Text
error: unused label `'label`
|
|
--> $DIR/unused_labels.rs:18:5
|
|
|
|
|
18 | / 'label: for i in 1..2 {
|
|
19 | | if i > 4 { continue }
|
|
20 | | }
|
|
| |_____^
|
|
|
|
|
= note: `-D clippy::unused-label` implied by `-D warnings`
|
|
|
|
error: unused label `'a`
|
|
--> $DIR/unused_labels.rs:31:5
|
|
|
|
|
31 | 'a: loop { break }
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
error: unused label `'same_label_in_two_fns`
|
|
--> $DIR/unused_labels.rs:42:5
|
|
|
|
|
42 | / 'same_label_in_two_fns: loop {
|
|
43 | | let _ = 1;
|
|
44 | | }
|
|
| |_____^
|
|
|
|
error: aborting due to 3 previous errors
|
|
|