@@ -45,7 +45,7 @@ fn struct_lifetime_variance() {
4545 }
4646 } yields {
4747 "Unique; substitution [], lifetime constraints [\
48- InEnvironment { environment: Env([]), goal: '!1_1: '!1_0 } \
48+ InEnvironment { environment: Env([]), goal: '!1_1: '!1_0 } \
4949 ]"
5050 }
5151 }
@@ -65,7 +65,7 @@ fn ref_lifetime_variance() {
6565 } yields {
6666 // Seems good!
6767 "Unique; substitution [], lifetime constraints [\
68- InEnvironment { environment: Env([]), goal: '!1_0: '!1_1 }\
68+ InEnvironment { environment: Env([]), goal: '!1_0: '!1_1 } \
6969 ]"
7070 }
7171 }
@@ -81,8 +81,9 @@ fn fn_lifetime_variance_args() {
8181 for <' a, ' b> fn ( & ' a u32 , & ' b u32 ) = for <' a> fn ( & ' a u32 , & ' a u32 )
8282 } yields {
8383 "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+ ]"
8687 }
8788 }
8889}
@@ -161,8 +162,9 @@ fn multi_lifetime() {
161162 // related to eachother. Instead, U should be &'?1 u32, with constraints
162163 // ?1 : 'a, ?1: 'b.
163164 "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+ ]}"
166168 }
167169 }
168170}
@@ -186,8 +188,9 @@ fn multi_lifetime_covariant_struct() {
186188 } yields {
187189 // Result should be identical to multi_lifetime result.
188190 "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+ ]}"
191194 }
192195 }
193196}
@@ -211,8 +214,9 @@ fn multi_lifetime_contravariant_struct() {
211214 } yields {
212215 // Result should be opposite multi_lifetime result.
213216 "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+ ]}"
216220 }
217221 }
218222}
@@ -266,8 +270,9 @@ fn multi_lifetime_slice() {
266270 } yields {
267271 // Result should be identical to multi_lifetime result.
268272 "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+ ]}"
271276 }
272277 }
273278}
@@ -289,8 +294,9 @@ fn multi_lifetime_tuple() {
289294 } yields {
290295 // Result should be identical to multi_lifetime result.
291296 "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+ ]}"
294300 }
295301 }
296302}
0 commit comments