|
1 |
| -error[E0261]: use of undeclared lifetime name `'a` |
2 |
| - --> $DIR/feature-gate-in_band_lifetimes.rs:50:14 |
3 |
| - | |
4 |
| -LL | impl MyTrait<'a> for Y<&'a u8> { |
5 |
| - | - ^^ undeclared lifetime |
6 |
| - | | |
7 |
| - | help: consider introducing lifetime `'a` here: `<'a>` |
8 |
| - | |
9 |
| - = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
10 |
| - |
11 |
| -error[E0261]: use of undeclared lifetime name `'a` |
12 |
| - --> $DIR/feature-gate-in_band_lifetimes.rs:50:25 |
13 |
| - | |
14 |
| -LL | impl MyTrait<'a> for Y<&'a u8> { |
15 |
| - | - ^^ undeclared lifetime |
16 |
| - | | |
17 |
| - | help: consider introducing lifetime `'a` here: `<'a>` |
18 |
| - | |
19 |
| - = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
20 |
| - |
21 |
| -error[E0261]: use of undeclared lifetime name `'a` |
22 |
| - --> $DIR/feature-gate-in_band_lifetimes.rs:53:31 |
23 |
| - | |
24 |
| -LL | fn my_lifetime(&self) -> &'a u8 { self.0 } |
25 |
| - | ^^ undeclared lifetime |
26 |
| - | |
27 |
| - = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
28 |
| -help: consider introducing lifetime `'a` here |
29 |
| - | |
30 |
| -LL | impl<'a> MyTrait<'a> for Y<&'a u8> { |
31 |
| - | ++++ |
32 |
| -help: consider introducing lifetime `'a` here |
33 |
| - | |
34 |
| -LL | fn my_lifetime<'a>(&self) -> &'a u8 { self.0 } |
35 |
| - | ++++ |
36 |
| - |
37 |
| -error[E0261]: use of undeclared lifetime name `'b` |
38 |
| - --> $DIR/feature-gate-in_band_lifetimes.rs:55:27 |
39 |
| - | |
40 |
| -LL | fn any_lifetime() -> &'b u8 { &0 } |
41 |
| - | ^^ undeclared lifetime |
42 |
| - | |
43 |
| - = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
44 |
| -help: consider introducing lifetime `'b` here |
45 |
| - | |
46 |
| -LL | impl<'b> MyTrait<'a> for Y<&'a u8> { |
47 |
| - | ++++ |
48 |
| -help: consider introducing lifetime `'b` here |
49 |
| - | |
50 |
| -LL | fn any_lifetime<'b>() -> &'b u8 { &0 } |
51 |
| - | ++++ |
52 |
| - |
53 |
| -error[E0261]: use of undeclared lifetime name `'b` |
54 |
| - --> $DIR/feature-gate-in_band_lifetimes.rs:57:27 |
55 |
| - | |
56 |
| -LL | fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 } |
57 |
| - | ^^ undeclared lifetime |
58 |
| - | |
59 |
| - = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
60 |
| -help: consider introducing lifetime `'b` here |
61 |
| - | |
62 |
| -LL | impl<'b> MyTrait<'a> for Y<&'a u8> { |
63 |
| - | ++++ |
64 |
| -help: consider introducing lifetime `'b` here |
65 |
| - | |
66 |
| -LL | fn borrowed_lifetime<'b>(&'b self) -> &'b u8 { &*self.0 } |
67 |
| - | ++++ |
68 |
| - |
69 |
| -error[E0261]: use of undeclared lifetime name `'b` |
70 |
| - --> $DIR/feature-gate-in_band_lifetimes.rs:57:40 |
71 |
| - | |
72 |
| -LL | fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 } |
73 |
| - | ^^ undeclared lifetime |
74 |
| - | |
75 |
| - = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
76 |
| -help: consider introducing lifetime `'b` here |
77 |
| - | |
78 |
| -LL | impl<'b> MyTrait<'a> for Y<&'a u8> { |
79 |
| - | ++++ |
80 |
| -help: consider introducing lifetime `'b` here |
81 |
| - | |
82 |
| -LL | fn borrowed_lifetime<'b>(&'b self) -> &'b u8 { &*self.0 } |
83 |
| - | ++++ |
84 |
| - |
85 | 1 | error[E0261]: use of undeclared lifetime name `'x`
|
86 | 2 | --> $DIR/feature-gate-in_band_lifetimes.rs:3:12
|
87 | 3 | |
|
@@ -178,6 +94,90 @@ help: consider introducing lifetime `'a` here
|
178 | 94 | LL | fn inner<'a>(&self) -> &'a u8 {
|
179 | 95 | | ++++
|
180 | 96 |
|
| 97 | +error[E0261]: use of undeclared lifetime name `'a` |
| 98 | + --> $DIR/feature-gate-in_band_lifetimes.rs:50:14 |
| 99 | + | |
| 100 | +LL | impl MyTrait<'a> for Y<&'a u8> { |
| 101 | + | - ^^ undeclared lifetime |
| 102 | + | | |
| 103 | + | help: consider introducing lifetime `'a` here: `<'a>` |
| 104 | + | |
| 105 | + = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
| 106 | + |
| 107 | +error[E0261]: use of undeclared lifetime name `'a` |
| 108 | + --> $DIR/feature-gate-in_band_lifetimes.rs:50:25 |
| 109 | + | |
| 110 | +LL | impl MyTrait<'a> for Y<&'a u8> { |
| 111 | + | - ^^ undeclared lifetime |
| 112 | + | | |
| 113 | + | help: consider introducing lifetime `'a` here: `<'a>` |
| 114 | + | |
| 115 | + = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
| 116 | + |
| 117 | +error[E0261]: use of undeclared lifetime name `'a` |
| 118 | + --> $DIR/feature-gate-in_band_lifetimes.rs:53:31 |
| 119 | + | |
| 120 | +LL | fn my_lifetime(&self) -> &'a u8 { self.0 } |
| 121 | + | ^^ undeclared lifetime |
| 122 | + | |
| 123 | + = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
| 124 | +help: consider introducing lifetime `'a` here |
| 125 | + | |
| 126 | +LL | impl<'a> MyTrait<'a> for Y<&'a u8> { |
| 127 | + | ++++ |
| 128 | +help: consider introducing lifetime `'a` here |
| 129 | + | |
| 130 | +LL | fn my_lifetime<'a>(&self) -> &'a u8 { self.0 } |
| 131 | + | ++++ |
| 132 | + |
| 133 | +error[E0261]: use of undeclared lifetime name `'b` |
| 134 | + --> $DIR/feature-gate-in_band_lifetimes.rs:55:27 |
| 135 | + | |
| 136 | +LL | fn any_lifetime() -> &'b u8 { &0 } |
| 137 | + | ^^ undeclared lifetime |
| 138 | + | |
| 139 | + = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
| 140 | +help: consider introducing lifetime `'b` here |
| 141 | + | |
| 142 | +LL | impl<'b> MyTrait<'a> for Y<&'a u8> { |
| 143 | + | ++++ |
| 144 | +help: consider introducing lifetime `'b` here |
| 145 | + | |
| 146 | +LL | fn any_lifetime<'b>() -> &'b u8 { &0 } |
| 147 | + | ++++ |
| 148 | + |
| 149 | +error[E0261]: use of undeclared lifetime name `'b` |
| 150 | + --> $DIR/feature-gate-in_band_lifetimes.rs:57:27 |
| 151 | + | |
| 152 | +LL | fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 } |
| 153 | + | ^^ undeclared lifetime |
| 154 | + | |
| 155 | + = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
| 156 | +help: consider introducing lifetime `'b` here |
| 157 | + | |
| 158 | +LL | impl<'b> MyTrait<'a> for Y<&'a u8> { |
| 159 | + | ++++ |
| 160 | +help: consider introducing lifetime `'b` here |
| 161 | + | |
| 162 | +LL | fn borrowed_lifetime<'b>(&'b self) -> &'b u8 { &*self.0 } |
| 163 | + | ++++ |
| 164 | + |
| 165 | +error[E0261]: use of undeclared lifetime name `'b` |
| 166 | + --> $DIR/feature-gate-in_band_lifetimes.rs:57:40 |
| 167 | + | |
| 168 | +LL | fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 } |
| 169 | + | ^^ undeclared lifetime |
| 170 | + | |
| 171 | + = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
| 172 | +help: consider introducing lifetime `'b` here |
| 173 | + | |
| 174 | +LL | impl<'b> MyTrait<'a> for Y<&'a u8> { |
| 175 | + | ++++ |
| 176 | +help: consider introducing lifetime `'b` here |
| 177 | + | |
| 178 | +LL | fn borrowed_lifetime<'b>(&'b self) -> &'b u8 { &*self.0 } |
| 179 | + | ++++ |
| 180 | + |
181 | 181 | error[E0261]: use of undeclared lifetime name `'b`
|
182 | 182 | --> $DIR/feature-gate-in_band_lifetimes.rs:43:27
|
183 | 183 | |
|
|
0 commit comments