|
1 | 1 | warning: label name `'fl` shadows a label name that is already in scope
|
2 |
| - --> $DIR/loops-reject-duplicate-labels-2.rs:23:7 |
| 2 | + --> $DIR/loops-reject-duplicate-labels-2.rs:24:7 |
3 | 3 | |
|
4 | 4 | LL | { 'fl: for _ in 0..10 { break; } }
|
5 | 5 | | --- first declared here
|
6 | 6 | LL | { 'fl: loop { break; } } //~ WARN label name `'fl` shadows a label name that is already in scope
|
7 | 7 | | ^^^ lifetime 'fl already in scope
|
8 | 8 |
|
9 | 9 | warning: label name `'lf` shadows a label name that is already in scope
|
10 |
| - --> $DIR/loops-reject-duplicate-labels-2.rs:25:7 |
| 10 | + --> $DIR/loops-reject-duplicate-labels-2.rs:26:7 |
11 | 11 | |
|
12 | 12 | LL | { 'lf: loop { break; } }
|
13 | 13 | | --- first declared here
|
14 | 14 | LL | { 'lf: for _ in 0..10 { break; } } //~ WARN label name `'lf` shadows a label name that is already in scope
|
15 | 15 | | ^^^ lifetime 'lf already in scope
|
16 | 16 |
|
17 | 17 | warning: label name `'wl` shadows a label name that is already in scope
|
18 |
| - --> $DIR/loops-reject-duplicate-labels-2.rs:27:7 |
| 18 | + --> $DIR/loops-reject-duplicate-labels-2.rs:28:7 |
19 | 19 | |
|
20 | 20 | LL | { 'wl: while 2 > 1 { break; } }
|
21 | 21 | | --- first declared here
|
22 | 22 | LL | { 'wl: loop { break; } } //~ WARN label name `'wl` shadows a label name that is already in scope
|
23 | 23 | | ^^^ lifetime 'wl already in scope
|
24 | 24 |
|
25 | 25 | warning: label name `'lw` shadows a label name that is already in scope
|
26 |
| - --> $DIR/loops-reject-duplicate-labels-2.rs:29:7 |
| 26 | + --> $DIR/loops-reject-duplicate-labels-2.rs:30:7 |
27 | 27 | |
|
28 | 28 | LL | { 'lw: loop { break; } }
|
29 | 29 | | --- first declared here
|
30 | 30 | LL | { 'lw: while 2 > 1 { break; } } //~ WARN label name `'lw` shadows a label name that is already in scope
|
31 | 31 | | ^^^ lifetime 'lw already in scope
|
32 | 32 |
|
33 | 33 | warning: label name `'fw` shadows a label name that is already in scope
|
34 |
| - --> $DIR/loops-reject-duplicate-labels-2.rs:31:7 |
| 34 | + --> $DIR/loops-reject-duplicate-labels-2.rs:32:7 |
35 | 35 | |
|
36 | 36 | LL | { 'fw: for _ in 0..10 { break; } }
|
37 | 37 | | --- first declared here
|
38 | 38 | LL | { 'fw: while 2 > 1 { break; } } //~ WARN label name `'fw` shadows a label name that is already in scope
|
39 | 39 | | ^^^ lifetime 'fw already in scope
|
40 | 40 |
|
41 | 41 | warning: label name `'wf` shadows a label name that is already in scope
|
42 |
| - --> $DIR/loops-reject-duplicate-labels-2.rs:33:7 |
| 42 | + --> $DIR/loops-reject-duplicate-labels-2.rs:34:7 |
43 | 43 | |
|
44 | 44 | LL | { 'wf: while 2 > 1 { break; } }
|
45 | 45 | | --- first declared here
|
46 | 46 | LL | { 'wf: for _ in 0..10 { break; } } //~ WARN label name `'wf` shadows a label name that is already in scope
|
47 | 47 | | ^^^ lifetime 'wf already in scope
|
48 | 48 |
|
49 | 49 | warning: label name `'tl` shadows a label name that is already in scope
|
50 |
| - --> $DIR/loops-reject-duplicate-labels-2.rs:35:7 |
| 50 | + --> $DIR/loops-reject-duplicate-labels-2.rs:36:7 |
51 | 51 | |
|
52 | 52 | LL | { 'tl: while let Some(_) = None::<i32> { break; } }
|
53 | 53 | | --- first declared here
|
54 | 54 | LL | { 'tl: loop { break; } } //~ WARN label name `'tl` shadows a label name that is already in scope
|
55 | 55 | | ^^^ lifetime 'tl already in scope
|
56 | 56 |
|
57 | 57 | warning: label name `'lt` shadows a label name that is already in scope
|
58 |
| - --> $DIR/loops-reject-duplicate-labels-2.rs:37:7 |
| 58 | + --> $DIR/loops-reject-duplicate-labels-2.rs:38:7 |
59 | 59 | |
|
60 | 60 | LL | { 'lt: loop { break; } }
|
61 | 61 | | --- first declared here
|
62 | 62 | LL | { 'lt: while let Some(_) = None::<i32> { break; } }
|
63 | 63 | | ^^^ lifetime 'lt already in scope
|
64 | 64 |
|
65 | 65 | error: compilation successful
|
66 |
| - --> $DIR/loops-reject-duplicate-labels-2.rs:42:1 |
| 66 | + --> $DIR/loops-reject-duplicate-labels-2.rs:43:1 |
67 | 67 | |
|
68 | 68 | LL | / pub fn main() { //~ ERROR compilation successful
|
69 | 69 | LL | | foo();
|
|
0 commit comments