Skip to content

Commit a9b0371

Browse files
Split yields tests whose results differ between solvers
1 parent 73ce746 commit a9b0371

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

tests/test/misc.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,8 +774,10 @@ fn ambiguous_unification_in_fn() {
774774
exists<int T, U> {
775775
MyClosure<fn(&'static U) -> ()>: FnOnce<(&'static T,)>
776776
}
777-
} yields {
778-
expect![["Unique"]]
777+
} yields[SolverChoice::slg_default()] {
778+
expect![["Unique; for<?U0> { substitution [?0 := ^0.0, ?1 := ^0.0], lifetime constraints [InEnvironment { environment: Env([]), goal: 'static: 'static }, InEnvironment { environment: Env([]), goal: 'static: 'static }] }"]]
779+
} yields[SolverChoice::recursive_default()] {
780+
expect![["Unique; for<?U0> { substitution [?0 := ^0.0, ?1 := ^0.0], lifetime constraints [InEnvironment { environment: Env([]), goal: 'static: 'static }] }"]]
779781
}
780782
}
781783
}

tests/test/numerics.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,10 @@ fn shl_ice() {
260260
exists<U> {
261261
u32: Shl<U>
262262
}
263-
} yields {
264-
expect![["Ambiguous"]]
263+
} yields[SolverChoice::slg_default()] {
264+
expect![["Ambiguous; definite substitution for<?U0,?U0> { [?0 := (&'^0.0 ^0.1)] }"]]
265+
} yields[SolverChoice::recursive_default()] {
266+
expect![["Ambiguous; no inference guidance"]]
265267
}
266268
}
267269
}

0 commit comments

Comments
 (0)