2017-02-07 20:05:30 +00:00
|
|
|
error: unused label `'label`
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/unused_labels.rs:5:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | / 'label: for i in 1..2 {
|
|
|
|
LL | | if i > 4 {
|
|
|
|
LL | | continue;
|
|
|
|
LL | | }
|
|
|
|
LL | | }
|
2017-04-23 13:25:22 +00:00
|
|
|
| |_____^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
= note: `-D clippy::unused-label` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: unused label `'a`
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/unused_labels.rs:19:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | / 'a: loop {
|
|
|
|
LL | | break;
|
|
|
|
LL | | }
|
2018-12-10 05:27:19 +00:00
|
|
|
| |_____^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: unused label `'same_label_in_two_fns`
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/unused_labels.rs:32:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | / 'same_label_in_two_fns: loop {
|
|
|
|
LL | | let _ = 1;
|
|
|
|
LL | | }
|
2017-04-23 13:25:22 +00:00
|
|
|
| |_____^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-01-16 16:06:27 +00:00
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|