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