Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir_ty/src/infer/coerce.rs')
-rw-r--r--crates/hir_ty/src/infer/coerce.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/hir_ty/src/infer/coerce.rs b/crates/hir_ty/src/infer/coerce.rs
index c24772f29b..528e3ba882 100644
--- a/crates/hir_ty/src/infer/coerce.rs
+++ b/crates/hir_ty/src/infer/coerce.rs
@@ -555,8 +555,10 @@ impl<'a> InferenceContext<'a> {
);
}
Solution::Ambig(Guidance::Definite(subst)) => {
+ // FIXME need to record an obligation here
canonicalized.apply_solution(&mut self.table, subst)
}
+ // FIXME actually we maybe should also accept unknown guidance here
_ => return Err(TypeError),
};
let unsize =