summaryrefslogtreecommitdiffstats
path: root/crates/rebel-lang/src/typing.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/rebel-lang/src/typing.rs')
-rw-r--r--crates/rebel-lang/src/typing.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rebel-lang/src/typing.rs b/crates/rebel-lang/src/typing.rs
index 87776d0..e85a588 100644
--- a/crates/rebel-lang/src/typing.rs
+++ b/crates/rebel-lang/src/typing.rs
@@ -235,7 +235,7 @@ impl<'scope> Context<'scope> {
return Ok(Type::unit());
};
- self.assign_destr_pat_type(&pat::DestrPat::from(pat), expr_type)?
+ self.assign_destr_pat_type(&pat::DestrPat::from(pat.borrowed()), expr_type)?
}
ast::BlockStmt::Assign { dest, expr } => {
let expr_type = self.type_expr(expr)?;