mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
31 lines
622 B
Plaintext
31 lines
622 B
Plaintext
error: unused label `'label`
|
|
--> $DIR/unused_labels.rs:14:5
|
|
|
|
|
LL | / 'label: for i in 1..2 {
|
|
LL | | if i > 4 {
|
|
LL | | continue;
|
|
LL | | }
|
|
LL | | }
|
|
| |_____^
|
|
|
|
|
= note: `-D clippy::unused-label` implied by `-D warnings`
|
|
|
|
error: unused label `'a`
|
|
--> $DIR/unused_labels.rs:28:5
|
|
|
|
|
LL | / 'a: loop {
|
|
LL | | break;
|
|
LL | | }
|
|
| |_____^
|
|
|
|
error: unused label `'same_label_in_two_fns`
|
|
--> $DIR/unused_labels.rs:41:5
|
|
|
|
|
LL | / 'same_label_in_two_fns: loop {
|
|
LL | | let _ = 1;
|
|
LL | | }
|
|
| |_____^
|
|
|
|
error: aborting due to 3 previous errors
|
|
|