Skip to content

Commit

Permalink
Split yields test that give different results
Browse files Browse the repository at this point in the history
  • Loading branch information
ecstatic-morse committed Dec 24, 2021
1 parent afadb21 commit eb85245
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/test/misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -771,8 +771,10 @@ fn ambiguous_unification_in_fn() {
exists<int T, U> {
MyClosure<fn(&'static U) -> ()>: FnOnce<(&'static T,)>
}
} yields {
} yields[SolverChoice::slg_default()] {
expect![[r#"Unique; for<?U0> { substitution [?0 := ^0.0, ?1 := ^0.0], lifetime constraints [InEnvironment { environment: Env([]), goal: 'static: 'static }, InEnvironment { environment: Env([]), goal: 'static: 'static }] }"#]]
} yields[SolverChoice::recursive_default()] {
expect![[r#"Unique; for<?U0> { substitution [?0 := ^0.0, ?1 := ^0.0], lifetime constraints [InEnvironment { environment: Env([]), goal: 'static: 'static }] }"#]]
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion tests/test/numerics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,10 @@ fn shl_ice() {
exists<U> {
u32: Shl<U>
}
} yields {
} yields[SolverChoice::slg_default()] {
expect![[r#"Ambiguous; definite substitution for<?U0,?U0> { [?0 := (&'^0.0 ^0.1)] }"#]]
} yields[SolverChoice::recursive_default()] {
expect![[r#"Ambiguous; no inference guidance"#]]
}
}
}
Expand Down

0 comments on commit eb85245

Please sign in to comment.