]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lint/unused_labels.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / lint / unused_labels.stderr
1 warning: unused label
2 --> $DIR/unused_labels.rs:11:5
3 |
4 LL | 'unused_while_label: while 0 == 0 {
5 | ^^^^^^^^^^^^^^^^^^^
6 |
7 note: the lint level is defined here
8 --> $DIR/unused_labels.rs:8:9
9 |
10 LL | #![warn(unused_labels)]
11 | ^^^^^^^^^^^^^
12
13 warning: unused label
14 --> $DIR/unused_labels.rs:16:5
15 |
16 LL | 'unused_while_let_label: while let Some(_) = opt {
17 | ^^^^^^^^^^^^^^^^^^^^^^^
18
19 warning: unused label
20 --> $DIR/unused_labels.rs:20:5
21 |
22 LL | 'unused_for_label: for _ in 0..10 {
23 | ^^^^^^^^^^^^^^^^^
24
25 warning: unused label
26 --> $DIR/unused_labels.rs:36:9
27 |
28 LL | 'unused_loop_label_inner_2: for _ in 0..10 {
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
30
31 warning: unused label
32 --> $DIR/unused_labels.rs:42:5
33 |
34 LL | 'unused_loop_label_outer_3: for _ in 0..10 {
35 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
36
37 warning: unused label
38 --> $DIR/unused_labels.rs:60:5
39 |
40 LL | 'many_used_shadowed: for _ in 0..10 {
41 | ^^^^^^^^^^^^^^^^^^^
42
43 warning: unused label
44 --> $DIR/unused_labels.rs:72:5
45 |
46 LL | 'unused_loop_label: loop {
47 | ^^^^^^^^^^^^^^^^^^
48
49 warning: unused label
50 --> $DIR/unused_labels.rs:78:5
51 |
52 LL | 'unused_block_label: {
53 | ^^^^^^^^^^^^^^^^^^^
54
55 warning: label name `'many_used_shadowed` shadows a label name that is already in scope
56 --> $DIR/unused_labels.rs:62:9
57 |
58 LL | 'many_used_shadowed: for _ in 0..10 {
59 | ------------------- first declared here
60 LL |
61 LL | 'many_used_shadowed: for _ in 0..10 {
62 | ^^^^^^^^^^^^^^^^^^^ lifetime 'many_used_shadowed already in scope
63
64 warning: 9 warnings emitted
65