@@ -45,7 +45,7 @@ fn struct_lifetime_variance() {
45
45
}
46
46
} yields {
47
47
"Unique; substitution [], lifetime constraints [\
48
- InEnvironment { environment: Env([]), goal: '!1_1: '!1_0 } \
48
+ InEnvironment { environment: Env([]), goal: '!1_1: '!1_0 } \
49
49
]"
50
50
}
51
51
}
@@ -65,7 +65,7 @@ fn ref_lifetime_variance() {
65
65
} yields {
66
66
// Seems good!
67
67
"Unique; substitution [], lifetime constraints [\
68
- InEnvironment { environment: Env([]), goal: '!1_0: '!1_1 }\
68
+ InEnvironment { environment: Env([]), goal: '!1_0: '!1_1 } \
69
69
]"
70
70
}
71
71
}
@@ -81,8 +81,9 @@ fn fn_lifetime_variance_args() {
81
81
for <' a, ' b> fn ( & ' a u32 , & ' b u32 ) = for <' a> fn ( & ' a u32 , & ' a u32 )
82
82
} yields {
83
83
"Unique;substitution [], lifetime constraints [\
84
- InEnvironment { environment: Env([]), goal: '!1_0: '!1_1 }, \
85
- InEnvironment { environment: Env([]), goal: '!1_1: '!1_0 }]"
84
+ InEnvironment { environment: Env([]), goal: '!1_0: '!1_1 }, \
85
+ InEnvironment { environment: Env([]), goal: '!1_1: '!1_0 } \
86
+ ]"
86
87
}
87
88
}
88
89
}
@@ -161,8 +162,9 @@ fn multi_lifetime() {
161
162
// related to eachother. Instead, U should be &'?1 u32, with constraints
162
163
// ?1 : 'a, ?1: 'b.
163
164
"Unique; for<?U1> { substitution [?0 := (&'^0.0 Uint(U32))], lifetime constraints [\
164
- InEnvironment { environment: Env([]), goal: '!1_0: '^0.0 }, \
165
- InEnvironment { environment: Env([]), goal: '!1_1: '^0.0 }] }"
165
+ InEnvironment { environment: Env([]), goal: '!1_0: '^0.0 }, \
166
+ InEnvironment { environment: Env([]), goal: '!1_1: '^0.0 } \
167
+ ]}"
166
168
}
167
169
}
168
170
}
@@ -186,8 +188,9 @@ fn multi_lifetime_covariant_struct() {
186
188
} yields {
187
189
// Result should be identical to multi_lifetime result.
188
190
"Unique; for<?U1> { substitution [?0 := (&'^0.0 Uint(U32))], lifetime constraints [\
189
- InEnvironment { environment: Env([]), goal: '!1_0: '^0.0 }, \
190
- InEnvironment { environment: Env([]), goal: '!1_1: '^0.0 }] }"
191
+ InEnvironment { environment: Env([]), goal: '!1_0: '^0.0 }, \
192
+ InEnvironment { environment: Env([]), goal: '!1_1: '^0.0 } \
193
+ ]}"
191
194
}
192
195
}
193
196
}
@@ -211,8 +214,9 @@ fn multi_lifetime_contravariant_struct() {
211
214
} yields {
212
215
// Result should be opposite multi_lifetime result.
213
216
"Unique; for<?U1> { substitution [?0 := (&'^0.0 Uint(U32))], lifetime constraints [\
214
- InEnvironment { environment: Env([]), goal: '^0.0: '!1_0 }, \
215
- InEnvironment { environment: Env([]), goal: '^0.0: '!1_1 }] }"
217
+ InEnvironment { environment: Env([]), goal: '^0.0: '!1_0 }, \
218
+ InEnvironment { environment: Env([]), goal: '^0.0: '!1_1 } \
219
+ ]}"
216
220
}
217
221
}
218
222
}
@@ -266,8 +270,9 @@ fn multi_lifetime_slice() {
266
270
} yields {
267
271
// Result should be identical to multi_lifetime result.
268
272
"Unique; for<?U1> { substitution [?0 := (&'^0.0 Uint(U32))], lifetime constraints [\
269
- InEnvironment { environment: Env([]), goal: '!1_0: '^0.0 }, \
270
- InEnvironment { environment: Env([]), goal: '!1_1: '^0.0 }] }"
273
+ InEnvironment { environment: Env([]), goal: '!1_0: '^0.0 }, \
274
+ InEnvironment { environment: Env([]), goal: '!1_1: '^0.0 } \
275
+ ]}"
271
276
}
272
277
}
273
278
}
@@ -289,8 +294,9 @@ fn multi_lifetime_tuple() {
289
294
} yields {
290
295
// Result should be identical to multi_lifetime result.
291
296
"Unique; for<?U1> { substitution [?0 := (&'^0.0 Uint(U32))], lifetime constraints [\
292
- InEnvironment { environment: Env([]), goal: '!1_0: '^0.0 }, \
293
- InEnvironment { environment: Env([]), goal: '!1_1: '^0.0 }] }"
297
+ InEnvironment { environment: Env([]), goal: '!1_0: '^0.0 }, \
298
+ InEnvironment { environment: Env([]), goal: '!1_1: '^0.0 } \
299
+ ]}"
294
300
}
295
301
}
296
302
}
0 commit comments