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