diff options
Diffstat (limited to 'crates/hir_ty/src/infer')
-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 a7e720f88..2178ffd07 100644 --- a/crates/hir_ty/src/infer/expr.rs +++ b/crates/hir_ty/src/infer/expr.rs | |||
@@ -823,7 +823,7 @@ impl<'a> InferenceContext<'a> { | |||
823 | let ty = self.resolve_ty_as_possible(ty); | 823 | let ty = self.resolve_ty_as_possible(ty); |
824 | self.infer_pat(*pat, &ty, BindingMode::default()); | 824 | self.infer_pat(*pat, &ty, BindingMode::default()); |
825 | } | 825 | } |
826 | Statement::Expr(expr) => { | 826 | Statement::Expr { expr, .. } => { |
827 | self.infer_expr(*expr, &Expectation::none()); | 827 | self.infer_expr(*expr, &Expectation::none()); |
828 | } | 828 | } |
829 | } | 829 | } |