summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/hir_typeck/expr_cs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hir_typeck/expr_cs.cpp b/src/hir_typeck/expr_cs.cpp
index 19cfee35..0cb01dcd 100644
--- a/src/hir_typeck/expr_cs.cpp
+++ b/src/hir_typeck/expr_cs.cpp
@@ -2151,6 +2151,7 @@ namespace {
),
(Infer,
// Keep trying
+ this->context.equate_types_shadow(node.span(), node.m_res_type);
return ;
),
(Borrow,