]> git.lizzy.rs Git - rust.git/blob - tests/ui/unused_labels.stderr
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / unused_labels.stderr
1 error: unused label `'label`
2   --> $DIR/unused_labels.rs:5:5
3    |
4 LL | /     'label: for i in 1..2 {
5 LL | |         if i > 4 {
6 LL | |             continue;
7 LL | |         }
8 LL | |     }
9    | |_____^
10    |
11    = note: `-D clippy::unused-label` implied by `-D warnings`
12
13 error: unused label `'a`
14   --> $DIR/unused_labels.rs:19:5
15    |
16 LL | /     'a: loop {
17 LL | |         break;
18 LL | |     }
19    | |_____^
20
21 error: unused label `'same_label_in_two_fns`
22   --> $DIR/unused_labels.rs:32:5
23    |
24 LL | /     'same_label_in_two_fns: loop {
25 LL | |         let _ = 1;
26 LL | |     }
27    | |_____^
28
29 error: aborting due to 3 previous errors
30