2 --> $DIR/unused_labels.rs:11:5
4 LL | 'unused_while_label: while 0 == 0 {
7 note: the lint level is defined here
8 --> $DIR/unused_labels.rs:8:9
10 LL | #![warn(unused_labels)]
14 --> $DIR/unused_labels.rs:16:5
16 LL | 'unused_while_let_label: while let Some(_) = opt {
17 | ^^^^^^^^^^^^^^^^^^^^^^^
20 --> $DIR/unused_labels.rs:20:5
22 LL | 'unused_for_label: for _ in 0..10 {
26 --> $DIR/unused_labels.rs:36:9
28 LL | 'unused_loop_label_inner_2: for _ in 0..10 {
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
32 --> $DIR/unused_labels.rs:42:5
34 LL | 'unused_loop_label_outer_3: for _ in 0..10 {
35 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
38 --> $DIR/unused_labels.rs:60:5
40 LL | 'many_used_shadowed: for _ in 0..10 {
44 --> $DIR/unused_labels.rs:72:5
46 LL | 'unused_loop_label: loop {
50 --> $DIR/unused_labels.rs:78: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:62:9
58 LL | 'many_used_shadowed: for _ in 0..10 {
59 | ------------------- first declared here
61 LL | 'many_used_shadowed: for _ in 0..10 {
62 | ^^^^^^^^^^^^^^^^^^^ lifetime 'many_used_shadowed already in scope
64 warning: 9 warnings emitted