2017-02-07 21:05:30 +01:00
|
|
|
error: unused label `'label`
|
2017-05-17 17:51:35 +02:00
|
|
|
--> unused_labels.rs:8:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-04-23 15:25:22 +02:00
|
|
|
8 | / 'label: for i in 1..2 {
|
2017-02-07 21:05:30 +01:00
|
|
|
9 | | if i > 4 { continue }
|
|
|
|
10 | | }
|
2017-04-23 15:25:22 +02:00
|
|
|
| |_____^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-17 14:19:44 +02:00
|
|
|
= note: `-D unused-label` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: unused label `'a`
|
2017-05-17 17:51:35 +02:00
|
|
|
--> unused_labels.rs:21:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
21 | 'a: loop { break }
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unused label `'same_label_in_two_fns`
|
2017-05-17 17:51:35 +02:00
|
|
|
--> unused_labels.rs:32:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-04-23 15:25:22 +02:00
|
|
|
32 | / 'same_label_in_two_fns: loop {
|
2017-02-07 21:05:30 +01:00
|
|
|
33 | | let _ = 1;
|
|
|
|
34 | | }
|
2017-04-23 15:25:22 +02:00
|
|
|
| |_____^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2017-07-03 06:37:30 +02:00
|
|
|
error: aborting due to 3 previous errors
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2017-05-17 14:19:44 +02:00
|
|
|
|
|
|
|
To learn more, run the command again with --verbose.
|