summary refs log tree commit diff
path: root/src/test/ui/loops/loops-reject-labels-shadowing-lifetimes.stderr
blob: 0d96c0b3a35b63fc5cdbaa938e47d9d50e3cd139 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
warning: label name `'a` shadows a lifetime name that is already in scope
  --> $DIR/loops-reject-labels-shadowing-lifetimes.rs:10:9
   |
LL |     fn foo<'a>() {
   |            -- first declared here
LL |         'a: loop { break 'a; }
   |         ^^ lifetime `'a` already in scope

warning: label name `'bad` shadows a lifetime name that is already in scope
  --> $DIR/loops-reject-labels-shadowing-lifetimes.rs:35:13
   |
LL |     impl<'bad, 'c> Struct<'bad, 'c> {
   |          ---- first declared here
LL |         fn meth_bad(&self) {
LL |             'bad: loop { break 'bad; }
   |             ^^^^ lifetime `'bad` already in scope

warning: label name `'bad` shadows a lifetime name that is already in scope
  --> $DIR/loops-reject-labels-shadowing-lifetimes.rs:42:13
   |
LL |     impl<'b, 'bad> Struct<'b, 'bad> {
   |              ---- first declared here
LL |         fn meth_bad2(&self) {
LL |             'bad: loop { break 'bad; }
   |             ^^^^ lifetime `'bad` already in scope

warning: label name `'bad` shadows a lifetime name that is already in scope
  --> $DIR/loops-reject-labels-shadowing-lifetimes.rs:49:13
   |
LL |         fn meth_bad3<'bad>(x: &'bad i8) {
   |                      ---- first declared here
LL |             'bad: loop { break 'bad; }
   |             ^^^^ lifetime `'bad` already in scope

warning: label name `'bad` shadows a lifetime name that is already in scope
  --> $DIR/loops-reject-labels-shadowing-lifetimes.rs:54:13
   |
LL |         fn meth_bad4<'a,'bad>(x: &'a i8, y: &'bad i8) {
   |                         ---- first declared here
LL |             'bad: loop { break 'bad; }
   |             ^^^^ lifetime `'bad` already in scope

warning: label name `'bad` shadows a lifetime name that is already in scope
  --> $DIR/loops-reject-labels-shadowing-lifetimes.rs:61:13
   |
LL |     impl <'bad, 'e> Enum<'bad, 'e> {
   |           ---- first declared here
LL |         fn meth_bad(&self) {
LL |             'bad: loop { break 'bad; }
   |             ^^^^ lifetime `'bad` already in scope

warning: label name `'bad` shadows a lifetime name that is already in scope
  --> $DIR/loops-reject-labels-shadowing-lifetimes.rs:67:13
   |
LL |     impl <'d, 'bad> Enum<'d, 'bad> {
   |               ---- first declared here
LL |         fn meth_bad2(&self) {
LL |             'bad: loop { break 'bad; }
   |             ^^^^ lifetime `'bad` already in scope

warning: label name `'bad` shadows a lifetime name that is already in scope
  --> $DIR/loops-reject-labels-shadowing-lifetimes.rs:73:13
   |
LL |         fn meth_bad3<'bad>(x: &'bad i8) {
   |                      ---- first declared here
LL |             'bad: loop { break 'bad; }
   |             ^^^^ lifetime `'bad` already in scope

warning: label name `'bad` shadows a lifetime name that is already in scope
  --> $DIR/loops-reject-labels-shadowing-lifetimes.rs:78:13
   |
LL |         fn meth_bad4<'a,'bad>(x: &'bad i8) {
   |                         ---- first declared here
LL |             'bad: loop { break 'bad; }
   |             ^^^^ lifetime `'bad` already in scope

warning: label name `'bad` shadows a lifetime name that is already in scope
  --> $DIR/loops-reject-labels-shadowing-lifetimes.rs:88:13
   |
LL |     trait HasDefaultMethod1<'bad> {
   |                             ---- first declared here
...
LL |             'bad: loop { break 'bad; }
   |             ^^^^ lifetime `'bad` already in scope

warning: label name `'bad` shadows a lifetime name that is already in scope
  --> $DIR/loops-reject-labels-shadowing-lifetimes.rs:94:13
   |
LL |     trait HasDefaultMethod2<'a,'bad> {
   |                                ---- first declared here
LL |         fn meth_bad(&self) {
LL |             'bad: loop { break 'bad; }
   |             ^^^^ lifetime `'bad` already in scope

warning: label name `'bad` shadows a lifetime name that is already in scope
  --> $DIR/loops-reject-labels-shadowing-lifetimes.rs:100:13
   |
LL |         fn meth_bad<'bad>(&self) {
   |                     ---- first declared here
LL |             'bad: loop { break 'bad; }
   |             ^^^^ lifetime `'bad` already in scope

warning: 12 warnings emitted