]>
Commit | Line | Data |
---|---|---|
ff7c6d11 | 1 | warning: label name `'a` shadows a lifetime name that is already in scope |
0731742a | 2 | --> $DIR/loops-reject-labels-shadowing-lifetimes.rs:10:9 |
ff7c6d11 | 3 | | |
0531ce1d | 4 | LL | fn foo<'a>() { |
ff7c6d11 | 5 | | -- first declared here |
0531ce1d | 6 | LL | 'a: loop { break 'a; } |
fc512014 | 7 | | ^^ lifetime `'a` already in scope |
ff7c6d11 XL |
8 | |
9 | warning: label name `'bad` shadows a lifetime name that is already in scope | |
0731742a | 10 | --> $DIR/loops-reject-labels-shadowing-lifetimes.rs:35:13 |
ff7c6d11 | 11 | | |
0531ce1d | 12 | LL | impl<'bad, 'c> Struct<'bad, 'c> { |
ff7c6d11 | 13 | | ---- first declared here |
0531ce1d XL |
14 | LL | fn meth_bad(&self) { |
15 | LL | 'bad: loop { break 'bad; } | |
fc512014 | 16 | | ^^^^ lifetime `'bad` already in scope |
ff7c6d11 XL |
17 | |
18 | warning: label name `'bad` shadows a lifetime name that is already in scope | |
0731742a | 19 | --> $DIR/loops-reject-labels-shadowing-lifetimes.rs:42:13 |
ff7c6d11 | 20 | | |
0531ce1d | 21 | LL | impl<'b, 'bad> Struct<'b, 'bad> { |
ff7c6d11 | 22 | | ---- first declared here |
0531ce1d XL |
23 | LL | fn meth_bad2(&self) { |
24 | LL | 'bad: loop { break 'bad; } | |
fc512014 | 25 | | ^^^^ lifetime `'bad` already in scope |
ff7c6d11 XL |
26 | |
27 | warning: label name `'bad` shadows a lifetime name that is already in scope | |
0731742a | 28 | --> $DIR/loops-reject-labels-shadowing-lifetimes.rs:49:13 |
ff7c6d11 | 29 | | |
0531ce1d | 30 | LL | fn meth_bad3<'bad>(x: &'bad i8) { |
ff7c6d11 | 31 | | ---- first declared here |
0531ce1d | 32 | LL | 'bad: loop { break 'bad; } |
fc512014 | 33 | | ^^^^ lifetime `'bad` already in scope |
ff7c6d11 XL |
34 | |
35 | warning: label name `'bad` shadows a lifetime name that is already in scope | |
0731742a | 36 | --> $DIR/loops-reject-labels-shadowing-lifetimes.rs:54:13 |
ff7c6d11 | 37 | | |
0531ce1d | 38 | LL | fn meth_bad4<'a,'bad>(x: &'a i8, y: &'bad i8) { |
ff7c6d11 | 39 | | ---- first declared here |
0531ce1d | 40 | LL | 'bad: loop { break 'bad; } |
fc512014 | 41 | | ^^^^ lifetime `'bad` already in scope |
ff7c6d11 XL |
42 | |
43 | warning: label name `'bad` shadows a lifetime name that is already in scope | |
0731742a | 44 | --> $DIR/loops-reject-labels-shadowing-lifetimes.rs:61:13 |
ff7c6d11 | 45 | | |
0531ce1d | 46 | LL | impl <'bad, 'e> Enum<'bad, 'e> { |
ff7c6d11 | 47 | | ---- first declared here |
0531ce1d XL |
48 | LL | fn meth_bad(&self) { |
49 | LL | 'bad: loop { break 'bad; } | |
fc512014 | 50 | | ^^^^ lifetime `'bad` already in scope |
ff7c6d11 XL |
51 | |
52 | warning: label name `'bad` shadows a lifetime name that is already in scope | |
0731742a | 53 | --> $DIR/loops-reject-labels-shadowing-lifetimes.rs:67:13 |
ff7c6d11 | 54 | | |
0531ce1d | 55 | LL | impl <'d, 'bad> Enum<'d, 'bad> { |
ff7c6d11 | 56 | | ---- first declared here |
0531ce1d XL |
57 | LL | fn meth_bad2(&self) { |
58 | LL | 'bad: loop { break 'bad; } | |
fc512014 | 59 | | ^^^^ lifetime `'bad` already in scope |
ff7c6d11 XL |
60 | |
61 | warning: label name `'bad` shadows a lifetime name that is already in scope | |
0731742a | 62 | --> $DIR/loops-reject-labels-shadowing-lifetimes.rs:73:13 |
ff7c6d11 | 63 | | |
0531ce1d | 64 | LL | fn meth_bad3<'bad>(x: &'bad i8) { |
ff7c6d11 | 65 | | ---- first declared here |
0531ce1d | 66 | LL | 'bad: loop { break 'bad; } |
fc512014 | 67 | | ^^^^ lifetime `'bad` already in scope |
ff7c6d11 XL |
68 | |
69 | warning: label name `'bad` shadows a lifetime name that is already in scope | |
0731742a | 70 | --> $DIR/loops-reject-labels-shadowing-lifetimes.rs:78:13 |
ff7c6d11 | 71 | | |
0531ce1d | 72 | LL | fn meth_bad4<'a,'bad>(x: &'bad i8) { |
ff7c6d11 | 73 | | ---- first declared here |
0531ce1d | 74 | LL | 'bad: loop { break 'bad; } |
fc512014 | 75 | | ^^^^ lifetime `'bad` already in scope |
ff7c6d11 XL |
76 | |
77 | warning: label name `'bad` shadows a lifetime name that is already in scope | |
0731742a | 78 | --> $DIR/loops-reject-labels-shadowing-lifetimes.rs:88:13 |
ff7c6d11 | 79 | | |
0531ce1d | 80 | LL | trait HasDefaultMethod1<'bad> { |
ff7c6d11 XL |
81 | | ---- first declared here |
82 | ... | |
0531ce1d | 83 | LL | 'bad: loop { break 'bad; } |
fc512014 | 84 | | ^^^^ lifetime `'bad` already in scope |
ff7c6d11 XL |
85 | |
86 | warning: label name `'bad` shadows a lifetime name that is already in scope | |
0731742a | 87 | --> $DIR/loops-reject-labels-shadowing-lifetimes.rs:94:13 |
0531ce1d XL |
88 | | |
89 | LL | trait HasDefaultMethod2<'a,'bad> { | |
90 | | ---- first declared here | |
91 | LL | fn meth_bad(&self) { | |
92 | LL | 'bad: loop { break 'bad; } | |
fc512014 | 93 | | ^^^^ lifetime `'bad` already in scope |
ff7c6d11 XL |
94 | |
95 | warning: label name `'bad` shadows a lifetime name that is already in scope | |
0731742a | 96 | --> $DIR/loops-reject-labels-shadowing-lifetimes.rs:100:13 |
0531ce1d XL |
97 | | |
98 | LL | fn meth_bad<'bad>(&self) { | |
99 | | ---- first declared here | |
100 | LL | 'bad: loop { break 'bad; } | |
fc512014 | 101 | | ^^^^ lifetime `'bad` already in scope |
ff7c6d11 | 102 | |
ba9703b0 XL |
103 | warning: 12 warnings emitted |
104 |