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