|
1 | 1 | error[E0308]: mismatched types |
2 | | - --> $DIR/variance-btree-invariant-types.rs:4:5 |
| 2 | + --> $DIR/variance-btree-invariant-types.rs:8:5 |
3 | 3 | | |
4 | 4 | LL | v |
5 | 5 | | ^ lifetime mismatch |
6 | 6 | | |
7 | 7 | = note: expected struct `std::collections::btree_map::IterMut<'_, &'new (), _>` |
8 | 8 | found struct `std::collections::btree_map::IterMut<'_, &'static (), _>` |
9 | 9 | note: the lifetime `'new` as defined here... |
10 | | - --> $DIR/variance-btree-invariant-types.rs:3:21 |
| 10 | + --> $DIR/variance-btree-invariant-types.rs:7:21 |
11 | 11 | | |
12 | 12 | LL | fn iter_cov_key<'a, 'new>(v: IterMut<'a, &'static (), ()>) -> IterMut<'a, &'new (), ()> { |
13 | 13 | | ^^^^ |
14 | 14 | = note: ...does not necessarily outlive the static lifetime |
15 | 15 |
|
16 | 16 | error[E0308]: mismatched types |
17 | | - --> $DIR/variance-btree-invariant-types.rs:7:5 |
| 17 | + --> $DIR/variance-btree-invariant-types.rs:13:5 |
18 | 18 | | |
19 | 19 | LL | v |
20 | 20 | | ^ lifetime mismatch |
21 | 21 | | |
22 | 22 | = note: expected struct `std::collections::btree_map::IterMut<'_, _, &'new ()>` |
23 | 23 | found struct `std::collections::btree_map::IterMut<'_, _, &'static ()>` |
24 | 24 | note: the lifetime `'new` as defined here... |
25 | | - --> $DIR/variance-btree-invariant-types.rs:6:21 |
| 25 | + --> $DIR/variance-btree-invariant-types.rs:12:21 |
26 | 26 | | |
27 | 27 | LL | fn iter_cov_val<'a, 'new>(v: IterMut<'a, (), &'static ()>) -> IterMut<'a, (), &'new ()> { |
28 | 28 | | ^^^^ |
29 | 29 | = note: ...does not necessarily outlive the static lifetime |
30 | 30 |
|
31 | 31 | error[E0308]: mismatched types |
32 | | - --> $DIR/variance-btree-invariant-types.rs:10:5 |
| 32 | + --> $DIR/variance-btree-invariant-types.rs:18:5 |
33 | 33 | | |
34 | 34 | LL | v |
35 | 35 | | ^ lifetime mismatch |
36 | 36 | | |
37 | 37 | = note: expected struct `std::collections::btree_map::IterMut<'_, &'static (), _>` |
38 | 38 | found struct `std::collections::btree_map::IterMut<'_, &'new (), _>` |
39 | 39 | note: the lifetime `'new` as defined here... |
40 | | - --> $DIR/variance-btree-invariant-types.rs:9:24 |
| 40 | + --> $DIR/variance-btree-invariant-types.rs:17:24 |
41 | 41 | | |
42 | 42 | LL | fn iter_contra_key<'a, 'new>(v: IterMut<'a, &'new (), ()>) -> IterMut<'a, &'static (), ()> { |
43 | 43 | | ^^^^ |
44 | 44 | = note: ...does not necessarily outlive the static lifetime |
45 | 45 |
|
46 | 46 | error[E0308]: mismatched types |
47 | | - --> $DIR/variance-btree-invariant-types.rs:13:5 |
| 47 | + --> $DIR/variance-btree-invariant-types.rs:23:5 |
48 | 48 | | |
49 | 49 | LL | v |
50 | 50 | | ^ lifetime mismatch |
51 | 51 | | |
52 | 52 | = note: expected struct `std::collections::btree_map::IterMut<'_, _, &'static ()>` |
53 | 53 | found struct `std::collections::btree_map::IterMut<'_, _, &'new ()>` |
54 | 54 | note: the lifetime `'new` as defined here... |
55 | | - --> $DIR/variance-btree-invariant-types.rs:12:24 |
| 55 | + --> $DIR/variance-btree-invariant-types.rs:22:24 |
56 | 56 | | |
57 | 57 | LL | fn iter_contra_val<'a, 'new>(v: IterMut<'a, (), &'new ()>) -> IterMut<'a, (), &'static ()> { |
58 | 58 | | ^^^^ |
59 | 59 | = note: ...does not necessarily outlive the static lifetime |
60 | 60 |
|
61 | 61 | error[E0308]: mismatched types |
62 | | - --> $DIR/variance-btree-invariant-types.rs:17:5 |
| 62 | + --> $DIR/variance-btree-invariant-types.rs:29:5 |
63 | 63 | | |
64 | 64 | LL | v |
65 | 65 | | ^ lifetime mismatch |
66 | 66 | | |
67 | 67 | = note: expected struct `RangeMut<'_, &'new (), _>` |
68 | 68 | found struct `RangeMut<'_, &'static (), _>` |
69 | 69 | note: the lifetime `'new` as defined here... |
70 | | - --> $DIR/variance-btree-invariant-types.rs:16:22 |
| 70 | + --> $DIR/variance-btree-invariant-types.rs:28:22 |
71 | 71 | | |
72 | 72 | LL | fn range_cov_key<'a, 'new>(v: RangeMut<'a, &'static (), ()>) -> RangeMut<'a, &'new (), ()> { |
73 | 73 | | ^^^^ |
74 | 74 | = note: ...does not necessarily outlive the static lifetime |
75 | 75 |
|
76 | 76 | error[E0308]: mismatched types |
77 | | - --> $DIR/variance-btree-invariant-types.rs:20:5 |
| 77 | + --> $DIR/variance-btree-invariant-types.rs:34:5 |
78 | 78 | | |
79 | 79 | LL | v |
80 | 80 | | ^ lifetime mismatch |
81 | 81 | | |
82 | 82 | = note: expected struct `RangeMut<'_, _, &'new ()>` |
83 | 83 | found struct `RangeMut<'_, _, &'static ()>` |
84 | 84 | note: the lifetime `'new` as defined here... |
85 | | - --> $DIR/variance-btree-invariant-types.rs:19:22 |
| 85 | + --> $DIR/variance-btree-invariant-types.rs:33:22 |
86 | 86 | | |
87 | 87 | LL | fn range_cov_val<'a, 'new>(v: RangeMut<'a, (), &'static ()>) -> RangeMut<'a, (), &'new ()> { |
88 | 88 | | ^^^^ |
89 | 89 | = note: ...does not necessarily outlive the static lifetime |
90 | 90 |
|
91 | 91 | error[E0308]: mismatched types |
92 | | - --> $DIR/variance-btree-invariant-types.rs:23:5 |
| 92 | + --> $DIR/variance-btree-invariant-types.rs:39:5 |
93 | 93 | | |
94 | 94 | LL | v |
95 | 95 | | ^ lifetime mismatch |
96 | 96 | | |
97 | 97 | = note: expected struct `RangeMut<'_, &'static (), _>` |
98 | 98 | found struct `RangeMut<'_, &'new (), _>` |
99 | 99 | note: the lifetime `'new` as defined here... |
100 | | - --> $DIR/variance-btree-invariant-types.rs:22:25 |
| 100 | + --> $DIR/variance-btree-invariant-types.rs:38:25 |
101 | 101 | | |
102 | 102 | LL | fn range_contra_key<'a, 'new>(v: RangeMut<'a, &'new (), ()>) -> RangeMut<'a, &'static (), ()> { |
103 | 103 | | ^^^^ |
104 | 104 | = note: ...does not necessarily outlive the static lifetime |
105 | 105 |
|
106 | 106 | error[E0308]: mismatched types |
107 | | - --> $DIR/variance-btree-invariant-types.rs:26:5 |
| 107 | + --> $DIR/variance-btree-invariant-types.rs:44:5 |
108 | 108 | | |
109 | 109 | LL | v |
110 | 110 | | ^ lifetime mismatch |
111 | 111 | | |
112 | 112 | = note: expected struct `RangeMut<'_, _, &'static ()>` |
113 | 113 | found struct `RangeMut<'_, _, &'new ()>` |
114 | 114 | note: the lifetime `'new` as defined here... |
115 | | - --> $DIR/variance-btree-invariant-types.rs:25:25 |
| 115 | + --> $DIR/variance-btree-invariant-types.rs:43:25 |
116 | 116 | | |
117 | 117 | LL | fn range_contra_val<'a, 'new>(v: RangeMut<'a, (), &'new ()>) -> RangeMut<'a, (), &'static ()> { |
118 | 118 | | ^^^^ |
119 | 119 | = note: ...does not necessarily outlive the static lifetime |
120 | 120 |
|
121 | 121 | error[E0308]: mismatched types |
122 | | - --> $DIR/variance-btree-invariant-types.rs:31:5 |
| 122 | + --> $DIR/variance-btree-invariant-types.rs:51:5 |
123 | 123 | | |
124 | 124 | LL | v |
125 | 125 | | ^ lifetime mismatch |
126 | 126 | | |
127 | 127 | = note: expected struct `std::collections::btree_map::OccupiedEntry<'_, &'new (), _>` |
128 | 128 | found struct `std::collections::btree_map::OccupiedEntry<'_, &'static (), _>` |
129 | 129 | note: the lifetime `'new` as defined here... |
130 | | - --> $DIR/variance-btree-invariant-types.rs:29:20 |
| 130 | + --> $DIR/variance-btree-invariant-types.rs:49:20 |
131 | 131 | | |
132 | 132 | LL | fn occ_cov_key<'a, 'new>(v: OccupiedEntry<'a, &'static (), ()>) |
133 | 133 | | ^^^^ |
134 | 134 | = note: ...does not necessarily outlive the static lifetime |
135 | 135 |
|
136 | 136 | error[E0308]: mismatched types |
137 | | - --> $DIR/variance-btree-invariant-types.rs:35:5 |
| 137 | + --> $DIR/variance-btree-invariant-types.rs:57:5 |
138 | 138 | | |
139 | 139 | LL | v |
140 | 140 | | ^ lifetime mismatch |
141 | 141 | | |
142 | 142 | = note: expected struct `std::collections::btree_map::OccupiedEntry<'_, _, &'new ()>` |
143 | 143 | found struct `std::collections::btree_map::OccupiedEntry<'_, _, &'static ()>` |
144 | 144 | note: the lifetime `'new` as defined here... |
145 | | - --> $DIR/variance-btree-invariant-types.rs:33:20 |
| 145 | + --> $DIR/variance-btree-invariant-types.rs:55:20 |
146 | 146 | | |
147 | 147 | LL | fn occ_cov_val<'a, 'new>(v: OccupiedEntry<'a, (), &'static ()>) |
148 | 148 | | ^^^^ |
149 | 149 | = note: ...does not necessarily outlive the static lifetime |
150 | 150 |
|
151 | 151 | error[E0308]: mismatched types |
152 | | - --> $DIR/variance-btree-invariant-types.rs:39:5 |
| 152 | + --> $DIR/variance-btree-invariant-types.rs:63:5 |
153 | 153 | | |
154 | 154 | LL | v |
155 | 155 | | ^ lifetime mismatch |
156 | 156 | | |
157 | 157 | = note: expected struct `std::collections::btree_map::OccupiedEntry<'_, &'static (), _>` |
158 | 158 | found struct `std::collections::btree_map::OccupiedEntry<'_, &'new (), _>` |
159 | 159 | note: the lifetime `'new` as defined here... |
160 | | - --> $DIR/variance-btree-invariant-types.rs:37:23 |
| 160 | + --> $DIR/variance-btree-invariant-types.rs:61:23 |
161 | 161 | | |
162 | 162 | LL | fn occ_contra_key<'a, 'new>(v: OccupiedEntry<'a, &'new (), ()>) |
163 | 163 | | ^^^^ |
164 | 164 | = note: ...does not necessarily outlive the static lifetime |
165 | 165 |
|
166 | 166 | error[E0308]: mismatched types |
167 | | - --> $DIR/variance-btree-invariant-types.rs:43:5 |
| 167 | + --> $DIR/variance-btree-invariant-types.rs:69:5 |
168 | 168 | | |
169 | 169 | LL | v |
170 | 170 | | ^ lifetime mismatch |
171 | 171 | | |
172 | 172 | = note: expected struct `std::collections::btree_map::OccupiedEntry<'_, _, &'static ()>` |
173 | 173 | found struct `std::collections::btree_map::OccupiedEntry<'_, _, &'new ()>` |
174 | 174 | note: the lifetime `'new` as defined here... |
175 | | - --> $DIR/variance-btree-invariant-types.rs:41:23 |
| 175 | + --> $DIR/variance-btree-invariant-types.rs:67:23 |
176 | 176 | | |
177 | 177 | LL | fn occ_contra_val<'a, 'new>(v: OccupiedEntry<'a, (), &'new ()>) |
178 | 178 | | ^^^^ |
179 | 179 | = note: ...does not necessarily outlive the static lifetime |
180 | 180 |
|
181 | 181 | error[E0308]: mismatched types |
182 | | - --> $DIR/variance-btree-invariant-types.rs:48:5 |
| 182 | + --> $DIR/variance-btree-invariant-types.rs:76:5 |
183 | 183 | | |
184 | 184 | LL | v |
185 | 185 | | ^ lifetime mismatch |
186 | 186 | | |
187 | 187 | = note: expected struct `std::collections::btree_map::VacantEntry<'_, &'new (), _>` |
188 | 188 | found struct `std::collections::btree_map::VacantEntry<'_, &'static (), _>` |
189 | 189 | note: the lifetime `'new` as defined here... |
190 | | - --> $DIR/variance-btree-invariant-types.rs:46:20 |
| 190 | + --> $DIR/variance-btree-invariant-types.rs:74:20 |
191 | 191 | | |
192 | 192 | LL | fn vac_cov_key<'a, 'new>(v: VacantEntry<'a, &'static (), ()>) |
193 | 193 | | ^^^^ |
194 | 194 | = note: ...does not necessarily outlive the static lifetime |
195 | 195 |
|
196 | 196 | error[E0308]: mismatched types |
197 | | - --> $DIR/variance-btree-invariant-types.rs:52:5 |
| 197 | + --> $DIR/variance-btree-invariant-types.rs:82:5 |
198 | 198 | | |
199 | 199 | LL | v |
200 | 200 | | ^ lifetime mismatch |
201 | 201 | | |
202 | 202 | = note: expected struct `std::collections::btree_map::VacantEntry<'_, _, &'new ()>` |
203 | 203 | found struct `std::collections::btree_map::VacantEntry<'_, _, &'static ()>` |
204 | 204 | note: the lifetime `'new` as defined here... |
205 | | - --> $DIR/variance-btree-invariant-types.rs:50:20 |
| 205 | + --> $DIR/variance-btree-invariant-types.rs:80:20 |
206 | 206 | | |
207 | 207 | LL | fn vac_cov_val<'a, 'new>(v: VacantEntry<'a, (), &'static ()>) |
208 | 208 | | ^^^^ |
209 | 209 | = note: ...does not necessarily outlive the static lifetime |
210 | 210 |
|
211 | 211 | error[E0308]: mismatched types |
212 | | - --> $DIR/variance-btree-invariant-types.rs:56:5 |
| 212 | + --> $DIR/variance-btree-invariant-types.rs:88:5 |
213 | 213 | | |
214 | 214 | LL | v |
215 | 215 | | ^ lifetime mismatch |
216 | 216 | | |
217 | 217 | = note: expected struct `std::collections::btree_map::VacantEntry<'_, &'static (), _>` |
218 | 218 | found struct `std::collections::btree_map::VacantEntry<'_, &'new (), _>` |
219 | 219 | note: the lifetime `'new` as defined here... |
220 | | - --> $DIR/variance-btree-invariant-types.rs:54:23 |
| 220 | + --> $DIR/variance-btree-invariant-types.rs:86:23 |
221 | 221 | | |
222 | 222 | LL | fn vac_contra_key<'a, 'new>(v: VacantEntry<'a, &'new (), ()>) |
223 | 223 | | ^^^^ |
224 | 224 | = note: ...does not necessarily outlive the static lifetime |
225 | 225 |
|
226 | 226 | error[E0308]: mismatched types |
227 | | - --> $DIR/variance-btree-invariant-types.rs:60:5 |
| 227 | + --> $DIR/variance-btree-invariant-types.rs:94:5 |
228 | 228 | | |
229 | 229 | LL | v |
230 | 230 | | ^ lifetime mismatch |
231 | 231 | | |
232 | 232 | = note: expected struct `std::collections::btree_map::VacantEntry<'_, _, &'static ()>` |
233 | 233 | found struct `std::collections::btree_map::VacantEntry<'_, _, &'new ()>` |
234 | 234 | note: the lifetime `'new` as defined here... |
235 | | - --> $DIR/variance-btree-invariant-types.rs:58:23 |
| 235 | + --> $DIR/variance-btree-invariant-types.rs:92:23 |
236 | 236 | | |
237 | 237 | LL | fn vac_contra_val<'a, 'new>(v: VacantEntry<'a, (), &'new ()>) |
238 | 238 | | ^^^^ |
|
0 commit comments