Skip to content

Commit d236626

Browse files
committed
Bail out early during ambiguous unification
1 parent eac7a6c commit d236626

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/solve/infer/unify.rs

+1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ impl<'t> Unifier<'t> {
116116
if apply1.name != apply2.name {
117117
if apply1.name.is_for_all() || apply2.name.is_for_all() {
118118
self.ambiguous = true;
119+
return Ok(());
119120
} else {
120121
bail!("cannot equate `{:?}` and `{:?}`", apply1.name, apply2.name);
121122
}

0 commit comments

Comments
 (0)