2 --> $DIR/unused_labels.rs:21:5
4 LL | 'unused_while_label: while 0 == 0 {
7 note: lint level defined here
8 --> $DIR/unused_labels.rs:18:9
10 LL | #![warn(unused_labels)]
14 --> $DIR/unused_labels.rs:26:5
16 LL | 'unused_while_let_label: while let Some(_) = opt {
17 | ^^^^^^^^^^^^^^^^^^^^^^^
20 --> $DIR/unused_labels.rs:30:5
22 LL | 'unused_for_label: for _ in 0..10 {
26 --> $DIR/unused_labels.rs:46:9
28 LL | 'unused_loop_label_inner_2: for _ in 0..10 {
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
32 --> $DIR/unused_labels.rs:52:5
34 LL | 'unused_loop_label_outer_3: for _ in 0..10 {
35 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
38 --> $DIR/unused_labels.rs:70:5
40 LL | 'many_used_shadowed: for _ in 0..10 {
44 --> $DIR/unused_labels.rs:82:5
46 LL | 'unused_loop_label: loop {
50 --> $DIR/unused_labels.rs:88:5
52 LL | 'unused_block_label: {
55 warning: label name `'many_used_shadowed` shadows a label name that is already in scope
56 --> $DIR/unused_labels.rs:72:9
58 LL | 'many_used_shadowed: for _ in 0..10 {
59 | ------------------- first declared here
60 LL | //~^ WARN unused label
61 LL | 'many_used_shadowed: for _ in 0..10 {
62 | ^^^^^^^^^^^^^^^^^^^ lifetime 'many_used_shadowed already in scope