diff options
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 55163c963..e9ca2b86f 100644 --- a/crates/hir_ty/src/infer/expr.rs +++ b/crates/hir_ty/src/infer/expr.rs | |||
@@ -800,7 +800,7 @@ impl<'a> InferenceContext<'a> { | |||
800 | // we don't even make an attempt at coercion | 800 | // we don't even make an attempt at coercion |
801 | self.table.new_maybe_never_var() | 801 | self.table.new_maybe_never_var() |
802 | } else { | 802 | } else { |
803 | self.coerce(&Ty::unit(), expected.coercion_target()); | 803 | self.coerce(&Ty::unit(), &expected.coercion_target()); |
804 | Ty::unit() | 804 | Ty::unit() |
805 | } | 805 | } |
806 | }; | 806 | }; |