]> git.proxmox.com Git - rustc.git/blame - src/test/ui/loops/loops-reject-labels-shadowing-lifetimes.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / loops / loops-reject-labels-shadowing-lifetimes.stderr
CommitLineData
ff7c6d11 1warning: 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 4LL | fn foo<'a>() {
ff7c6d11 5 | -- first declared here
0531ce1d 6LL | 'a: loop { break 'a; }
fc512014 7 | ^^ lifetime `'a` already in scope
ff7c6d11
XL
8
9warning: 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 12LL | impl<'bad, 'c> Struct<'bad, 'c> {
ff7c6d11 13 | ---- first declared here
0531ce1d
XL
14LL | fn meth_bad(&self) {
15LL | 'bad: loop { break 'bad; }
fc512014 16 | ^^^^ lifetime `'bad` already in scope
ff7c6d11
XL
17
18warning: 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 21LL | impl<'b, 'bad> Struct<'b, 'bad> {
ff7c6d11 22 | ---- first declared here
0531ce1d
XL
23LL | fn meth_bad2(&self) {
24LL | 'bad: loop { break 'bad; }
fc512014 25 | ^^^^ lifetime `'bad` already in scope
ff7c6d11
XL
26
27warning: 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 30LL | fn meth_bad3<'bad>(x: &'bad i8) {
ff7c6d11 31 | ---- first declared here
0531ce1d 32LL | 'bad: loop { break 'bad; }
fc512014 33 | ^^^^ lifetime `'bad` already in scope
ff7c6d11
XL
34
35warning: 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 38LL | fn meth_bad4<'a,'bad>(x: &'a i8, y: &'bad i8) {
ff7c6d11 39 | ---- first declared here
0531ce1d 40LL | 'bad: loop { break 'bad; }
fc512014 41 | ^^^^ lifetime `'bad` already in scope
ff7c6d11
XL
42
43warning: 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 46LL | impl <'bad, 'e> Enum<'bad, 'e> {
ff7c6d11 47 | ---- first declared here
0531ce1d
XL
48LL | fn meth_bad(&self) {
49LL | 'bad: loop { break 'bad; }
fc512014 50 | ^^^^ lifetime `'bad` already in scope
ff7c6d11
XL
51
52warning: 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 55LL | impl <'d, 'bad> Enum<'d, 'bad> {
ff7c6d11 56 | ---- first declared here
0531ce1d
XL
57LL | fn meth_bad2(&self) {
58LL | 'bad: loop { break 'bad; }
fc512014 59 | ^^^^ lifetime `'bad` already in scope
ff7c6d11
XL
60
61warning: 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 64LL | fn meth_bad3<'bad>(x: &'bad i8) {
ff7c6d11 65 | ---- first declared here
0531ce1d 66LL | 'bad: loop { break 'bad; }
fc512014 67 | ^^^^ lifetime `'bad` already in scope
ff7c6d11
XL
68
69warning: 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 72LL | fn meth_bad4<'a,'bad>(x: &'bad i8) {
ff7c6d11 73 | ---- first declared here
0531ce1d 74LL | 'bad: loop { break 'bad; }
fc512014 75 | ^^^^ lifetime `'bad` already in scope
ff7c6d11
XL
76
77warning: 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 80LL | trait HasDefaultMethod1<'bad> {
ff7c6d11
XL
81 | ---- first declared here
82...
0531ce1d 83LL | 'bad: loop { break 'bad; }
fc512014 84 | ^^^^ lifetime `'bad` already in scope
ff7c6d11
XL
85
86warning: 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 |
89LL | trait HasDefaultMethod2<'a,'bad> {
90 | ---- first declared here
91LL | fn meth_bad(&self) {
92LL | 'bad: loop { break 'bad; }
fc512014 93 | ^^^^ lifetime `'bad` already in scope
ff7c6d11
XL
94
95warning: 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 |
98LL | fn meth_bad<'bad>(&self) {
99 | ---- first declared here
100LL | 'bad: loop { break 'bad; }
fc512014 101 | ^^^^ lifetime `'bad` already in scope
ff7c6d11 102
ba9703b0
XL
103warning: 12 warnings emitted
104