Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir_ty/src/infer/expr.rs')
| -rw-r--r-- | crates/hir_ty/src/infer/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_ty/src/infer/expr.rs b/crates/hir_ty/src/infer/expr.rs index ada5717f1a..3aad9d4cc8 100644 --- a/crates/hir_ty/src/infer/expr.rs +++ b/crates/hir_ty/src/infer/expr.rs @@ -1037,7 +1037,7 @@ impl<'a> InferenceContext<'a> { if let Some(expected_ty) = expected_output.to_option(&mut self.table) { self.table.fudge_inference(|table| { if table.try_unify(&expected_ty, &output).is_ok() { - table.resolve_with_fallback(inputs, |var, kind, _, _| match kind { + table.resolve_with_fallback(inputs, &|var, kind, _, _| match kind { chalk_ir::VariableKind::Ty(tk) => var.to_ty(&Interner, tk).cast(&Interner), chalk_ir::VariableKind::Lifetime => { var.to_lifetime(&Interner).cast(&Interner) |