rust/tests/ui/unused_labels.stderr

31 lines
622 B
Plaintext
Raw Normal View History

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