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